:root {
    --primary: #10b981; /* Professional Emerald Green */
    --primary-dark: #059669;
    --secondary: #f59e0b; /* Professional Amber */
    --accent: #3b82f6; /* Trusting Blue */
    --background: #f3f4f6;
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* Layout */
.navbar-custom {
    background: #111827;
    padding: 1.25rem 0;
}

/* Force white text on dark navbar - Bootstrap 5.3 compatibility */
.navbar-custom .nav-link,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-brand span,
.navbar-custom .navbar-toggler-icon {
    color: #fff !important;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.main-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Cards */
.card-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-premium:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Admin Sidebar Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #111827;
    color: white;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

.admin-main {
    flex-grow: 1;
    background: var(--background);
    padding: 2rem 3rem;
    width: 100%;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.show {
        left: 0;
    }
    .admin-main {
        padding: 1rem;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1045;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 575.98px) {
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.75rem; }
    .p-5 { padding: 1.5rem !important; }
    .p-4 { padding: 1rem !important; }
}

.sidebar-nav .nav-link {
    color: #9ca3af;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-nav .nav-link.active {
    background: var(--primary);
    color: white;
}

/* Badges */
.badge-soft {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 0.375rem;
}

.badge-soft-success { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-soft-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge-soft-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-soft-primary { background: rgba(59, 130, 246, 0.1); color: #2563eb; }

/* Tables */
.table-modern thead th {
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.table-modern tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .display-5 { font-size: 2.25rem; }
    .display-6 { font-size: 1.75rem; }
    .p-5 { padding: 1.5rem !important; }
    .p-4 { padding: 1.25rem !important; }
    
    .navbar-brand img { height: 35px !important; }
    .navbar-brand .fs-4 { font-size: 1.1rem !important; }
    .navbar-brand small { font-size: 0.55rem !important; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-main, .main-content {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar beautify */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}
