:root {
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --primary-color: #e74c3c;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sidebar {
    background: var(--sidebar-bg);
    min-height: 100vh;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.nav-section {
    margin-bottom: 20px;
}

.main-content {
    margin-left: 16.666667%;
    background: transparent;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.top-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.content-area {
    background: transparent;
}

.kpi-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
    border-radius: 12px;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.kpi-card .card-body h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.kpi-card .card-body small {
    font-size: 0.85rem;
}

.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 1rem 1.5rem;
    color: #2c3e50;
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.2s;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        min-height: auto;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Invoice PDF Styles */
.invoice-pdf {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    font-family: Arial, sans-serif;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.invoice-title {
    font-size: 48px;
    font-weight: bold;
    color: #4caf50;
    margin: 0;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta-box {
    background: #4caf50;
    color: white;
    padding: 8px 15px;
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

.invoice-section {
    margin: 20px 0;
}

.invoice-section-header {
    background: #4caf50;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.invoice-table thead {
    background: #4caf50;
    color: white;
}

.invoice-table th,
.invoice-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.invoice-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.invoice-totals {
    text-align: right;
    margin-top: 20px;
}

.invoice-total-row {
    display: flex;
    justify-content: flex-end;
    margin: 5px 0;
}

.invoice-grand-total {
    font-size: 24px;
    font-weight: bold;
    border-top: 2px solid #333;
    padding-top: 10px;
    margin-top: 10px;
}

