/* Admin Theme - Professional & Clean */

:root {
    /* Light Mode Colors - Professional */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: #334155;
    --bg-sidebar-active: rgba(37, 99, 235, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f1f5f9;
    
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;
}


/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.admin-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    position: sticky;
    top: 0;
    background: var(--bg-sidebar);
    z-index: 10;
}

.admin-sidebar.collapsed .admin-sidebar-header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-inverse);
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .logo-container {
    justify-content: center;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-inverse);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar.collapsed .sidebar-toggle {
    width: 100%;
    margin-top: 0.5rem;
}

.admin-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Menu */
.admin-sidebar-menu {
    padding: 0.5rem 0;
}

.menu-group {
    margin-bottom: 0.25rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-inverse);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    gap: 0.75rem;
    position: relative;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.menu-item .menu-label {
    flex: 1;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.menu-item .menu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.admin-sidebar.collapsed .menu-item .menu-label,
.admin-sidebar.collapsed .menu-item .menu-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 0.75rem;
}

.menu-item:hover {
    background: var(--bg-sidebar-hover);
    border-left-color: var(--primary);
}

.menu-item.active {
    background: var(--bg-sidebar-active);
    border-left-color: var(--primary);
    color: var(--primary-light);
}

.menu-item.active i {
    color: var(--primary-light);
}

.menu-item.has-submenu.active .menu-arrow {
    transform: rotate(90deg);
}

/* Submenu */
.submenu {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--primary);
    margin-left: 1rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.submenu.show {
    max-height: 500px;
    padding: 0.5rem 0;
}

.submenu .menu-item {
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.9rem;
    border-left: none;
}

.submenu .menu-item i {
    font-size: 0.875rem;
    width: 16px;
}

.submenu .menu-item:hover {
    background: rgba(37, 99, 235, 0.15);
    padding-left: 2.75rem;
}

.submenu .menu-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.admin-sidebar.collapsed .submenu {
    display: none !important;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-main.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed);
}

/* Header */
.admin-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.admin-header-search {
    position: relative;
}

.admin-header-search input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-body);
    color: var(--text-primary);
    width: 300px;
    font-size: 0.9rem;
}

.admin-header-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.profile-toggle:hover {
    background: var(--bg-body);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--info));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

.profile-dropdown.show .profile-menu {
    display: block;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.profile-menu a:hover {
    background: var(--bg-body);
}

.profile-menu a i {
    width: 16px;
    text-align: center;
}

/* Content */
.admin-content {
    padding: 2rem;
    flex: 1;
    padding-bottom: 4rem; /* Add space for footer */
}

/* Footer */
.admin-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.admin-footer-content {
    max-width: 100%;
}

.admin-footer p {
    margin: 0;
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.stat-card.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.stat-card-primary,
.stat-card.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.stat-card-success,
.stat-card.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.stat-card-warning,
.stat-card.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
}

.stat-card-danger,
.stat-card.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.stat-card-info,
.stat-card.info {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
    color: white;
}

.stat-card-secondary,
.stat-card.secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #475569 100%);
    color: white;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.2;
}

.stat-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Dashboard specific styles */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* Tables */
.table {
    background: var(--bg-card);
    color: var(--text-primary);
    width: 100%;
}

.table thead th {
    border-bottom: 2px solid var(--border);
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-body);
}

.table tbody td {
    padding: 0.75rem;
}

/* Forms */
.form-control, .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    width: 100%;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 0.5rem;
}

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

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

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

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

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

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

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

/* Scrollbar */
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Code Blocks */
pre {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

pre code {
    color: var(--text-primary);
    background: transparent;
    padding: 0;
    border: none;
}

code {
    background-color: var(--bg-body);
    color: var(--primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--text-primary);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    font-weight: 500;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
    border-color: transparent;
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    margin-top: 1rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Form improvements */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    border-left: none;
}

/* Form Error Messages - Red */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626 !important;
    font-weight: 500;
}

.is-invalid {
    border-color: #dc2626 !important;
}

.is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* Yii2 Form Errors */
.help-block,
.help-block-error {
    color: #dc2626 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.has-error .form-control,
.has-error .form-select {
    border-color: #dc2626 !important;
}

.has-error .help-block,
.has-error .help-block-error {
    color: #dc2626 !important;
}

/* Error Summary */
.error-summary {
    color: #dc2626 !important;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.error-summary ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #dc2626;
}

.error-summary li {
    color: #dc2626;
    font-weight: 500;
}

/* Select2 Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--bg-card);
}

.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0.25rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 0.5rem;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--bg-card);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary);
    color: white;
}

/* Module Dashboard Stat Cards */
.stat-card-module {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.stat-card-module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon-module {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.stat-card-primary .stat-card-icon-module {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.stat-card-success .stat-card-icon-module {
    background: linear-gradient(135deg, var(--success), #059669);
}

.stat-card-danger .stat-card-icon-module {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.stat-card-warning .stat-card-icon-module {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.stat-card-info .stat-card-icon-module {
    background: linear-gradient(135deg, var(--info), #0891b2);
}

.stat-card-secondary .stat-card-icon-module {
    background: linear-gradient(135deg, var(--secondary), #475569);
}

.stat-card-content-module {
    flex: 1;
}

.stat-label-module {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value-module {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-content {
        padding-bottom: 4rem; /* Add space for footer on mobile */
    }
    
    .admin-footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .admin-header-search input {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        padding: 1rem;
        padding-bottom: 4rem; /* Add space for footer on mobile */
    }
    
    .admin-footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .stat-card-module {
        padding: 1rem;
    }
    
    .stat-card-icon-module {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value-module {
        font-size: 1.5rem;
    }
}

/* Quick Start Guide */
.quick-start-guide {
    background: transparent;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}


.quick-start-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quick-start-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.quick-start-title h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.quick-start-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.step-number {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem 0;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0 0 0.875rem 0;
    line-height: 1.4;
}

.step-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.step-action:hover {
    color: #764ba2;
}

.api-endpoint-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.api-endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.api-endpoint-header i {
    font-size: 1.25rem;
    color: #667eea;
}

.api-endpoint-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.api-endpoint-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.api-method {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    width: fit-content;
}

.api-url {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.api-url code {
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    white-space: nowrap;
}

.api-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-note i {
    color: #f59e0b;
}

.api-note a {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
}

.api-note a:hover {
    text-decoration: underline;
}

/* Responsive for Quick Start Guide */
@media (max-width: 768px) {
    .quick-start-guide {
        padding: 1.5rem;
    }
    
    .quick-start-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .quick-start-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .quick-start-title h2 {
        font-size: 1.5rem;
    }
    
    .quick-start-title p {
        font-size: 1rem;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .api-endpoint-card {
        padding: 1.5rem;
    }
}

/* Login Page Styles */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.login-container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 60px);
}

/* Left Side - Login Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffffff;
    position: relative;
}

.login-form-content {
    width: 100%;
    max-width: 450px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo .logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-logo .logo-image {
    max-width: 80px;
    max-height: 80px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 8px;
}

.login-logo .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.login-form {
    margin-top: 2rem;
}

.login-form .form-group-custom {
    margin-bottom: 1.5rem;
}

.login-form .form-group-custom .form-label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.login-form .form-group-custom .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.login-form .form-group-custom .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.login-form .form-group-custom .invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
}

.login-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-form .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
}

.login-form .form-check-label {
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    margin: 0;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.login-form .btn-primary:active {
    transform: translateY(0);
}

/* Right Side - Image */
.login-image-section {
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%),
                url('https://cassavamatters.org/wp-content/uploads/2019/11/27689493942_c5b50abc87_o-everglow.jpg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
    background-attachment: fixed;
}

.login-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.login-image-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-image-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.login-image-content p {
    font-size: 1.125rem;
    opacity: 0.98;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Footer */
.login-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    text-align: center;
}

.login-footer-content {
    max-width: 100%;
}

.login-footer p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive Design for Login */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-image-section {
        display: none;
    }
    
    .login-form-section {
        min-height: calc(100vh - 60px);
    }
    
    .login-form-content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-form-section {
        padding: 1.5rem;
    }
    
    .login-logo {
        margin-bottom: 2rem;
    }
    
    .login-logo .logo-placeholder,
    .login-logo .logo-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .login-logo .logo-text {
        font-size: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-header p {
        font-size: 0.875rem;
    }
    
    .login-footer {
        padding: 1rem;
        font-size: 0.8rem;
    }
}
