/* Admin Styles */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.login-card h1 {
    color: var(--color-coral);
    margin-bottom: 30px;
    text-align: center;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

.login-form,
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.back-to-app {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--color-teal);
    text-decoration: none;
}

.back-to-app:hover {
    text-decoration: underline;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 20px 0;
}

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

.admin-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.lists-section {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.lists-section h2 {
    color: var(--color-coral);
    margin-bottom: 25px;
    font-size: 2rem;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--color-light);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--color-dark);
    border-bottom: 2px solid #ddd;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #4CAF50;
    color: white;
}

.status-inactive {
    background: #9E9E9E;
    color: white;
}

.actions-cell {
    white-space: nowrap;
}

.btn-action {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

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

.btn-toggle:hover {
    background: #3db8b0;
}

.btn-delete {
    background: #F44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

/* Upload Page */
.admin-upload-page {
    padding: 20px 0;
}

.upload-instructions {
    background: var(--color-white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.upload-instructions h3 {
    color: var(--color-coral);
    margin-bottom: 15px;
}

.upload-instructions ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.upload-instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.upload-instructions code {
    background: var(--color-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--color-coral);
}

.upload-form {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

    .actions-cell {
        white-space: normal;
    }

    .btn-action {
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }
}
