@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* Custom Color Variables */
:root {
    --brand-red: #960821;
    --brand-blue: #033a6d;
    --brand-light-red: #bb1534;
    --brand-light-blue: #06549c;
    --brand-gray: #f8f9fa;
    --brand-dark: #333333;
}

body {
    font-family: 'Prompt', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--brand-gray);
    color: var(--brand-dark);
}

/* Background Utilities */
.brand-bg-red {
    background-color: var(--brand-red) !important;
}

.brand-bg-blue {
    background-color: var(--brand-blue) !important;
}

/* Text Utilities */
.text-brand-red {
    color: var(--brand-red) !important;
}

.text-brand-blue {
    color: var(--brand-blue) !important;
}

/* Button Utilities */
.btn-brand-red {
    background-color: var(--brand-red);
    color: white;
    border: none;
    transition: all 0.3s;
}

.btn-brand-red:hover {
    background-color: var(--brand-light-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(150, 8, 33, 0.2);
}

.btn-brand-blue {
    background-color: var(--brand-blue);
    color: white;
    border: none;
    transition: all 0.3s;
}

.btn-brand-blue:hover {
    background-color: var(--brand-light-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 58, 109, 0.2);
}

.btn-outline-brand-red {
    color: var(--brand-red);
    border-color: var(--brand-red);
    transition: all 0.3s;
}
.btn-outline-brand-red:hover {
    background-color: var(--brand-red);
    color: white;
}

/* Cards & Layout */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Navigation */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: white;
    color: var(--brand-dark);
    transition: all 0.3s;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: var(--brand-red);
    color: white;
}
#sidebar.teacher-mode .sidebar-header {
    background: var(--brand-blue);
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--brand-dark);
    text-decoration: none;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: var(--brand-red);
    background: #f8f9fa;
    border-left: 4px solid var(--brand-red);
}

#sidebar.teacher-mode ul li a:hover, #sidebar.teacher-mode ul li.active > a {
    color: var(--brand-blue);
    border-left: 4px solid var(--brand-blue);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Custom Forms */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--brand-red);
}

.teacher-mode-form .form-floating > .form-control:focus ~ label,
.teacher-mode-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.teacher-mode-form .form-floating > .form-select ~ label {
    color: var(--brand-blue);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.25rem rgba(150, 8, 33, 0.25);
}

.teacher-mode-form .form-control:focus, .teacher-mode-form .form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(3, 58, 109, 0.25);
}

/* Table styling */
.table-custom thead th {
    background-color: var(--brand-red);
    color: white;
    border: none;
}
.teacher-mode-table thead th {
    background-color: var(--brand-blue);
}
