/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.login-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.login-form label i {
    margin-right: 8px;
    color: #667eea;
}

.login-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #666;
}

.login-footer p {
    margin-bottom: 5px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-header i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
    display: block;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

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

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

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #3498db;
}

.nav-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
}

.nav-item i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    width: 100%;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    z-index: 2;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.user-info i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: #c0392b;
}

.logout-btn i {
    margin-right: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.content-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.content-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.content-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.08);
}

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #34495e;
}

.card h4 {
    font-size: 1rem;
    margin: 16px 0 8px;
    color: #4b6584;
}

.card ul {
    padding-left: 20px;
    color: #4b6584;
}

.card ul li {
    margin-bottom: 6px;
}

.api-playground {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.api-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.api-field label {
    font-weight: 600;
    color: #34495e;
}

.api-field input,
.api-field select,
.api-field textarea {
    padding: 12px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.api-field input:focus,
.api-field select:focus,
.api-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.api-field small {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.api-field-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.api-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.api-response {
    margin-top: 24px;
    padding: 20px;
    border-radius: 14px;
    background: #1e272e;
    color: #f5f6fa;
    font-family: 'Fira Code', 'Source Code Pro', monospace;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-response[aria-busy="true"] {
    position: relative;
    opacity: 0.85;
}

.api-response__placeholder {
    color: rgba(245, 246, 250, 0.65);
}

.api-response__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(245, 246, 250, 0.8);
}

.api-response pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 10px;
    margin: 0;
}

.api-response__error {
    color: #ff6b6b;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-action:hover:not(.is-loading) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.primary-action:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.secondary-action {
    padding: 10px 18px;
    border: 2px solid #667eea;
    border-radius: 10px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-action:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.secondary-action.is-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.primary-action.is-loading .btn-spinner {
    display: inline-block;
}

.primary-action.is-loading .btn-text {
    opacity: 0.85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.meta-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.status-banner {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
}

.status-banner.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-banner.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-banner.info {
    display: block;
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.stat-content h3 {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.quick-actions h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Content Actions */
.content-actions {
    margin-bottom: 25px;
}

/* Form Container */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.admin-form .form-group {
    margin-bottom: 25px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.admin-form label i {
    margin-right: 8px;
    color: #667eea;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
}

.form-help i {
    margin-right: 5px;
    color: #667eea;
}

.current-image {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.current-image p {
    margin-bottom: 10px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.company-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-cell .company-name {
    font-weight: 600;
    color: #2c3e50;
}

.company-cell .company-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge.board-mainboard {
    background: #e0f2fe;
    color: #0369a1;
}

.badge.board-sme {
    background: #fef3c7;
    color: #b45309;
}

.table-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.board-filter {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 10px 14px;
}

.board-filter label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #4b5563;
    cursor: pointer;
}

.board-filter input {
    accent-color: #667eea;
    cursor: pointer;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.radio-inline label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #4b5563;
    cursor: pointer;
}

.radio-inline input {
    accent-color: #667eea;
    cursor: pointer;
}

.inline-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 10px 15px;
    gap: 10px;
    min-width: 260px;
    color: #95a5a6;
}

.search-wrapper i {
    font-size: 0.9rem;
}

.search-wrapper input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    color: #2c3e50;
    background: transparent;
}

.result-summary {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f9fa;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.admin-table td {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.no-image {
    color: #6c757d;
    font-style: italic;
}

.caption-text {
    max-width: 300px;
    word-wrap: break-word;
}

.caption-more {
    color: #6c757d;
    font-style: italic;
}

.actions {
    display: flex;
    gap: 8px;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #dfe3e8;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #eef2f7;
}

.page-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-controls span {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.table-container .action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
}

.table-container .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #dfe3e8;
    background: white;
    color: #4a5568;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.table-container .action-btn:hover {
    background: #eef2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.table-container .action-btn.primary {
    border-color: rgba(102, 126, 234, 0.6);
    color: #667eea;
}

.table-container .action-btn.primary:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: #667eea;
}

.table-container .action-btn.secondary {
    border-color: rgba(118, 75, 162, 0.4);
    color: #764ba2;
}

.table-container .action-btn.secondary:hover {
    background: rgba(118, 75, 162, 0.12);
    border-color: #764ba2;
}

.table-container .action-btn.danger {
    border-color: rgba(231, 76, 60, 0.45);
    color: #e74c3c;
}

.table-container .action-btn.danger:hover {
    background: rgba(231, 76, 60, 0.12);
    border-color: #e74c3c;
}

.logo-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #dfe3e8;
    background: #f4f6fb;
}

.kv-group {
    background: #f8f9fb;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.kv-group label {
    margin-bottom: 16px;
}

.kv-add-btn {
    margin-top: 12px;
}

.mt-lg {
    margin-top: 24px;
}

.kv-group label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 12px;
}

.kv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kv-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.kv-row input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dfe3e8;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.kv-row input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.kv-remove-btn {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.kv-remove-btn:hover {
    background: #fecaca;
    color: #991b1b;
}

.kv-row-static .kv-remove-btn {
    display: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .content-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        justify-content: flex-start;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 15px 10px;
    }
    
    .table-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .content-header h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* API Documentation Styles */
.api-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.api-endpoint {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
}

.method-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 1rem;
}

.method-get { 
    background: #28a745; 
    color: white; 
}

.method-post { 
    background: #007bff; 
    color: white; 
}

.method-put { 
    background: #ffc107; 
    color: black; 
}

.method-delete { 
    background: #dc3545; 
    color: white; 
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    background: #2d3748;
    color: #68d391;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5rem 0;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.parameter-table th,
.parameter-table td {
    border: 1px solid #e9ecef;
    padding: 0.75rem;
    text-align: left;
}

.parameter-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.response-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.status-code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.status-200 { 
    background: #d4edda; 
    color: #155724; 
}

.status-400 { 
    background: #f8d7da; 
    color: #721c24; 
}

.status-401 { 
    background: #f8d7da; 
    color: #721c24; 
}

.status-500 { 
    background: #f8d7da; 
    color: #721c24; 
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: min(960px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    animation: modalFade 0.25s ease;
}

.modal-content.wide {
    width: min(1100px, 95vw);
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f7;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.modal-close {
    border: none;
    background: transparent;
    color: #95a5a6;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2c3e50;
}

.form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.json-grid textarea {
    min-height: 140px;
}

.modal .form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus,
.modal .form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.modal .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.modal .form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
}

.modal-actions .secondary-action {
    border-color: #dfe3e8;
    color: #4a5568;
    background: white;
    padding: 10px 18px;
}

.modal-actions .secondary-action:hover {
    background: #f1f5f9;
    color: #2d3748;
}

.danger-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.danger-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.25);
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.detail-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eef2f7;
}

.detail-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.detail-card pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0;
}

.status-banner.info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-banner.info.show {
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: #eef2f7;
    color: #4b5563;
}

.badge.success {
    background: #d1fae5;
    color: #047857;
}

.badge.warning {
    background: #fef3c7;
    color: #b45309;
}

.badge.info {
    background: #e0f2fe;
    color: #0369a1;
}
.api-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.api-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-stats .stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: bold;
}

.api-stats .stat-card p {
    margin: 0;
    opacity: 0.9;
}

.base-url-info {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.base-url-info code {
    background: #1976d2;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Responsive API Documentation */
@media (max-width: 768px) {
    .api-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .api-endpoint {
        padding: 1rem;
    }
    
    .parameter-table {
        font-size: 0.9rem;
    }
    
    .parameter-table th,
    .parameter-table td {
        padding: 0.5rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .api-stats {
        grid-template-columns: 1fr;
    }
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Settings Card Styles */
.settings-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eef2f7;
}

.settings-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card h3 i {
    color: #667eea;
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.toggle-group:last-child {
    border-bottom: none;
}

.toggle-group label {
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

/* Settings Card Form Styles */
.settings-card .form-group {
    margin-bottom: 16px;
}

.settings-card .form-group:last-child {
    margin-bottom: 0;
}

.settings-card .form-group label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.settings-card .form-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.settings-card .form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-card .form-group input[type="text"]::placeholder {
    color: #9ca3af;
}
