/* Admin Panel CSS - Professional Dark Theme with Yellow Accents */

/* Admin Login Page */
.admin-login-page {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.admin-login-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: scaleIn 0.6s ease-out both;
}

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

.admin-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-icon svg {
    width: 3.5rem;
    height: 3.5rem;
}

.admin-login-header h1 {
    font-size: 2rem;
    color: var(--text-white);
    margin: 0;
}

.admin-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

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

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

.admin-login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-white);
}

.label-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.label-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.admin-login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Admin Layout */
.admin-layout {
    min-height: 100vh;
    background: var(--bg-dark);
}

.admin-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    text-decoration: none;
}

.admin-brand:hover {
    color: var(--primary-color);
}

.admin-nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.admin-nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.admin-nav-menu li a:hover,
.admin-nav-menu li a.active {
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-username {
    color: var(--text-light);
    font-weight: 500;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 2rem 0;
}

.admin-page-header {
    margin-bottom: 2rem;
    animation: fadeIn 0.7s ease-out both;
}

.admin-page-header h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.admin-page-subtitle {
    color: var(--text-gray);
    font-size: 1.125rem;
}

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

.admin-summary-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out both;
}

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

.admin-summary-card:nth-child(1) { animation-delay: 0.1s; }
.admin-summary-card:nth-child(2) { animation-delay: 0.2s; }
.admin-summary-card:nth-child(3) { animation-delay: 0.3s; }
.admin-summary-card:nth-child(4) { animation-delay: 0.4s; }

.admin-summary-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.admin-summary-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.admin-summary-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Admin Tables */
.admin-table-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out both;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-table-header h2 {
    font-size: 1.75rem;
    color: var(--text-white);
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.admin-table th {
    background-color: #F9FAFB;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-card-hover);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Admin Buttons */
.admin-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.admin-btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-darker);
}

.admin-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.admin-btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
}

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

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

.admin-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Status Badges */
.admin-badge {
    display: inline-block;
    padding: 0.3em 0.6em;
    border-radius: 0.3rem;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

.admin-badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--secondary-color);
}

.admin-badge-warning {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--primary-color);
}

.admin-badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.admin-badge-secondary {
    background-color: rgba(107, 114, 128, 0.2);
    color: var(--text-gray);
}

/* Empty State */
.admin-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.admin-empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Form Styles */
.admin-table-section .form-group {
    margin-bottom: 1.5rem;
}

.admin-table-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-white);
}

.admin-table-section input[type="text"],
.admin-table-section input[type="email"],
.admin-table-section input[type="password"],
.admin-table-section input[type="number"],
.admin-table-section select,
.admin-table-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    background-color: #FFFFFF;
    color: #0F172A;
    font-family: inherit;
}

.admin-table-section input:focus,
.admin-table-section select:focus,
.admin-table-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    box-shadow: 0 0 0 3px rgba(106, 92, 255, 0.1);
}

.admin-table-section input:active,
.admin-table-section select:active,
.admin-table-section textarea:active {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

.admin-table-section input,
.admin-table-section select,
.admin-table-section textarea {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

.admin-table-section input::placeholder,
.admin-table-section textarea::placeholder {
    color: var(--text-gray);
}

.admin-table-section small {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.admin-table-section input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .admin-nav-menu li a {
        display: block;
        width: 100%;
    }

    .admin-summary-cards {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}
