/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4a000;
    --primary-dark: #b89000;
    --secondary: #333;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #212529;
    --border: #dee2e6;
    --sidebar-width: 250px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050816;
    background-image:
        radial-gradient(circle at top left, rgba(212,160,0,0.25) 0, transparent 55%),
        radial-gradient(circle at bottom right, rgba(244,191,66,0.18) 0, transparent 55%);
}

.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.login-illustration {
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 0;
    padding: 60px 70px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.login-illustration::before,
.login-illustration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
}

.login-illustration::before {
    width: 260px;
    height: 260px;
    background: rgba(212,160,0,0.4);
    top: -120px;
    right: -80px;
}

.login-illustration::after {
    width: 220px;
    height: 220px;
    background: rgba(250,204,21,0.35);
    bottom: -120px;
    left: -60px;
}

.login-illustration-content {
    position: relative;
    z-index: 1;
}

.login-hero-logo {
    width: 160px;
    margin-bottom: 22px;
}

.login-illustration-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.login-illustration-subtitle {
    font-size: 0.95rem;
    color: #e5e7eb;
    max-width: 420px;
    margin-bottom: 30px;
}

.login-illustration-graphic {
    margin-top: 10px;
}

.login-illustration-graphic svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.login-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 45px 32px 40px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    position: relative;
    max-width: 760px;
    margin-left: auto;
    margin-right: 14%;
    z-index: 2;
}

.login-box {
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.login-header h2 {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.login-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    background-image: linear-gradient(90deg, var(--primary), var(--primary-dark));
    background-size: 200% 100%;
    border: none;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-form .btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.login-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.login-meta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
}

.login-meta a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.login-meta a:hover {
    text-decoration: underline;
}

.login-mobile-logo {
    display: none;
}

/* Login responsive */
@media (max-width: 900px) {
    .login-container {
        max-width: 720px;
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
    }
    .login-illustration {
        position: static;
        order: 3;
        padding: 30px 25px;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
        margin-bottom: 0;
        margin-top: 20px;
        width: 100%;
    }
    .login-hero-logo {
        display: none;
    }
    .login-illustration-title,
    .login-illustration-subtitle,
    .login-illustration-graphic {
        display: none;
    }
    .login-panel {
        order: 2;
        padding: 35px 30px;
        border-radius: 18px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .login-mobile-logo {
        display: block;
        order: 1;
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }
    .login-mobile-logo img {
        height: 50px;
    }
}

@media (max-width: 600px) {
    .login-container {
        padding: 30px 15px;
    }
    .login-panel {
        padding: 28px 22px;
    }
    .login-illustration {
        padding: 24px 18px;
    }
    .login-illustration-subtitle {
        font-size: 0.9rem;
    }
    .login-mobile-logo img {
        height: 40px;
    }
}

/* Admin Header */
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo {
    height: 32px;
}

.admin-title {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    color: var(--secondary);
    font-weight: 500;
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-item.active {
    background: rgba(212, 160, 0, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 40px;
    max-width: calc(100vw - var(--sidebar-width));
}

.admin-page {
    background: #f3f4f6;
    color: #111827;
}

.dashboard-shell {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 32px 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 400;
}

.page-header-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dashboard-logo {
    height: 40px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.stat-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    margin-bottom: 10px;
}

.stat-link {
    color: #111827;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-link:hover {
    text-decoration: underline;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-actions h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-logout {
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: #c82333;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: var(--light);
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image {
    color: #999;
    font-size: 0.85rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-form {
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 0 0 auto;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary);
    }
    
    .admin-main {
        max-width: 100%;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}
