:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #e74c3c;
    --secondary-dark: #c0392b;
    --success: #27ae60;
    --warning: #f39c12;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --bg-color: #f4f6f9;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --btn-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card, .login-panel, .login-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 0; 
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-header, .login-header {
    background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header h2, .login-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.card-body, .login-form {
    padding: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    gap: 8px;
    text-decoration: none;
    width: 100%;
}

.btn:active {
    transform: scale(0.98) translateY(2px);
}

.btn-primary {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 0 #1c6ea4, 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #4aa3df, #2e86c1);
    transform: translateY(-2px);
}

.btn-primary:active {
    box-shadow: 0 1px 0 #1c6ea4;
    transform: translateY(2px);
}

.btn-secondary {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 0 #922b21, 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #ec7063, #cb4335);
    transform: translateY(-2px);
}

.btn-secondary:active {
    box-shadow: 0 1px 0 #922b21;
    transform: translateY(2px);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
    width: auto;
}

.btn:disabled {
    background: #bdc3c7;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.data-table th {
    background: #f8f9fa;
    color: var(--dark);
    font-weight: 700;
    padding: 15px;
    border-bottom: 2px solid #dfe6e9;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.data-table tr:hover td {
    background: #f1faff;
}

.data-table tr:last-child td:first-child { border-bottom-left-radius: 10px; }
.data-table tr:last-child td:last-child { border-bottom-right-radius: 10px; }

.video-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 20px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#video, #modalPhoto {
    width: 100%;
    display: block;
}

#photosGrid {
    padding: 20px;
}

#photosGrid img {
    transition: transform 0.3s;
}

#photosGrid img:hover {
    transform: scale(1.03);
}

.stats-grid {
    padding: 0 10px;
}

.stat-card {
    text-align: center;
    border-top: 4px solid var(--primary);
}

.stat-card:nth-child(2) { border-top-color: var(--success); }
.stat-card:nth-child(3) { border-top-color: var(--warning); }
.stat-card:nth-child(4) { border-top-color: var(--secondary); }

.stat-number {
    font-family: 'Arial', sans-serif;
    margin-top: 10px;
}

.result-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .login-panel {
        margin: 20px;
        width: auto;
    }
    
    .admin-nav {
        flex-direction: column;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}
