/* Admin Panel Enhanced Styles */

/* CSS Variables */
:root {
    --primary-color: #d4af37;
    --primary-light: #f1e068;
    --primary-dark: #b8941f;
    --secondary-color: #2c3e50;
    --background-color: #1a1a2e;
    --background-light: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-accent: #f1e068;
    --text-dark: #1a1a2e;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    --accent-color: #7c3aed;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.3);
    --transition-normal: all 0.3s ease;
    --hover-lift: translateY(-2px);
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.3);
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-light) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Admin Header Styles */
.admin-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 18px 30px;
    border-bottom: 2px solid var(--border-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    width: 100%;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo i {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 18px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    transition: var(--transition-normal);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 45px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.nav-links a:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: var(--hover-lift);
    box-shadow: var(--shadow-light);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-dark);
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-medium);
}

.logout-btn {
    background: var(--error-bg) !important;
    color: var(--error-color) !important;
    border-color: var(--error-border) !important;
}

.logout-btn:hover {
    background: var(--error-color) !important;
    color: white !important;
    border-color: var(--error-color) !important;
}

.website-link {
    background: var(--success-bg) !important;
    color: var(--success-color) !important;
    border-color: var(--success-border) !important;
}

.website-link:hover {
    background: var(--success-color) !important;
    color: white !important;
    border-color: var(--success-color) !important;
}

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 120px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-accent);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        padding: 10px 14px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-links {
        width: 100%;
        max-width: none;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-links a {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 120px;
        text-align: center;
    }
    
    .container {
        padding: 20px;
        max-width: 100%;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        min-width: 100px;
        font-size: 13px;
    }
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-color);
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    font-size: 14px;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-dark);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

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

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

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

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-medium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #f6e05e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

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

.table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    color: var(--text-accent);
}

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

