* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #1a252f;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #3498db;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 40px 0;
    text-align: center;
    border-radius: 8px;
    margin: 20px auto;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.dept-section {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dept-title {
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-card video {
    width: 100%;
    height: 180px;
    background: #000;
    object-fit: cover;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: 600;
    font-size: 15px;
    word-break: break-word;
    margin-bottom: 5px;
}

.video-meta {
    font-size: 12px;
    color: #7f8c8d;
}

.upload-card {
    background: white;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group select, 
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: #219150;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.login-body {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 5px;
    text-align: center;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
}

.btn-login {
    background: #3498db;
    margin-top: 10px;
}

.btn-login:hover {
    background: #2980b9;
}

.user-badge {
    background: #34495e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 15px;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}

.btn-logout:hover {
    background: #c0392b;
}

.btn-nav-upload {
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}