:root {
    --primary: 186 100% 30%; /* #007a7a - Teal from CTRL+PLAY logo */
    --secondary: 23 100% 50%; /* #ff6600 - Orange from CTRL+PLAY logo */
    --success: 123 38% 57%; /* #28a745 */
    --danger: 354 85% 44%; /* #dc3545 */
    --warning: 23 100% 50%; /* #ff6600 - Using orange */
    --info: 186 100% 35%; /* #008080 - Teal variation */
    --light: 210 17% 98%; /* #f8f9fa */
    --dark: 210 11% 15%; /* #212529 */
    --background: 210 11% 98%; /* #f8f9fa */
    --text: 210 11% 15%; /* #212529 */
    --ctrl-teal: 186 100% 30%; /* #007a7a */
    --ctrl-orange: 23 100% 50%; /* #ff6600 */
}

body {
    background: hsl(var(--background));
    color: hsl(var(--text));
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Student Area Styles */
.student-area {
    background: linear-gradient(90deg, hsl(var(--ctrl-orange)) 0%, hsl(var(--ctrl-teal)) 100%);
    min-height: 100vh;
}

.student-area .container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.welcome-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(90deg, hsl(var(--ctrl-orange)) 0%, hsl(var(--ctrl-teal)) 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.turma-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.turma-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.turma-card:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.turma-card .card {
    border: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, hsl(var(--light)) 100%);
}

.turma-card .card:hover {
    border-color: hsl(var(--primary));
}

/* Admin Area Styles */
.admin-area {
    background: linear-gradient(90deg, hsl(var(--ctrl-orange)) 0%, hsl(var(--ctrl-teal)) 100%);
    min-height: 100vh;
}

.admin-welcome {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(90deg, hsl(var(--ctrl-orange)) 0%, hsl(var(--ctrl-teal)) 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-turma-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.admin-turma-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.admin-turma-card .card {
    border: none;
    transition: all 0.3s ease;
}

.admin-turma-card:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: hsl(var(--success));
}

/* Login Page Styles */
.login-page {
    height: 100vh;
    background: linear-gradient(90deg, hsl(var(--ctrl-orange)) 0%, hsl(var(--ctrl-teal)) 100%);
}

.login-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-form .input-group-text {
    background: hsl(var(--light));
    border-color: #dee2e6;
}

/* File Cards */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.file-card .card {
    border: none;
    border-left: 4px solid hsl(var(--primary));
    transition: all 0.3s ease;
}

.file-card .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.file-icon {
    min-width: 50px;
}

.file-info {
    overflow: hidden;
}

.file-info .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: hsl(var(--dark));
    background: hsl(var(--light));
}

.table td {
    vertical-align: middle;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .student-area .container,
    .login-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .welcome-card,
    .admin-welcome {
        padding: 1.5rem;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Upload Form */
#uploadForm {
    background: hsl(var(--light));
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px dashed hsl(var(--primary));
    transition: all 0.3s ease;
}

#uploadForm:hover {
    background: rgba(0, 123, 255, 0.05);
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, hsl(var(--success)) 0%, rgba(40, 167, 69, 0.1) 100%);
    color: hsl(var(--success));
}

.alert-danger {
    background: linear-gradient(135deg, hsl(var(--danger)) 0%, rgba(220, 53, 69, 0.1) 100%);
    color: hsl(var(--danger));
}

/* Footer */
footer {
    margin-top: auto;
    background: transparent !important;
    color: white;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form controls */
.form-control:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}
