﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Login Styles */
.login-container {
    padding: 40px;
    max-width: 400px;
    margin: 0 auto;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

/* Dashboard Styles */
.dashboard {
    padding: 0;
}

.dashboard-header {
    background: #34495e;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.user-info h3 {
    margin-bottom: 5px;
}

.logout-btn {
    background: #e74c3c;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    width: auto;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Tabs */
.tabs {
    background: #ecf0f1;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-button {
    background: #bdc3c7;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
}

.tab-button.active {
    background: white;
    color: #2c3e50;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* Video Styles */
.video-list {
    display: grid;
    gap: 30px;
}

.video-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.video-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
}

.video-protection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
}

.video-description {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.users-table, .videos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.users-table th, .videos-table th {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.users-table td, .videos-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.users-table tr:hover, .videos-table tr:hover {
    background: #f8f9fa;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #219a52;
}

/* Form Styles */
.admin-panel {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.checkbox-group {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.checkbox-item input[type=checkbox] {
    width: auto;
    transform: scale(1.2);
}

.file-help {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tabs {
        justify-content: center;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .video-card {
        padding: 15px;
    }
}