/**
 * Betygsregistrering - Custom Styles
 * Following Vklass Design System
 */

/* CSS Variables - Color Palette & Theme */
:root {
    /* Theme Colors */
    --cl-hard: #26418f;
    --cl-medium: #5c6bc0;
    --cl-soft: #9999cc;
    --cl-softer: #dee1ed;
    --cl-super-soft: #f0f3fc;
    --cl-soft-background: #c5cae9;

    /* Accent Colors */
    --cl-green: #73bc56;
    --cl-yellow: #f6a623;
    --cl-red: #f44336;

    /* Grayscale */
    --white: #fff;
    --gray-lightest: #fafafa;
    --gray-lighter: #eee;
    --gray-smooth: #e0e0e0;
    --gray-light: #c8c8c8;
    --gray: #a4a4a4;
    --gray-dark: #6d6d6d;
    --gray-darker: #4a4a4a;
    --black: #000;

    /* State Colors */
    --color-success: var(--cl-green);
    --color-info: var(--cl-hard);
    --color-warning: var(--cl-yellow);
    --color-error: var(--cl-red);
    --color-positive: var(--cl-green);
    --color-negative: var(--cl-red);

    /* Layout Dimensions */
    --toolbar-height: 64px;
    --permanent-drawer-width: 280px;
    --collapsible-drawer-closed-width: 56px;
    --content-container-max-width: 1562px;
    --content-padding-horizontal: 24px;
    --content-padding-horizontal-phone: 16px;
    --gap: 8px;
    --gap-double: 16px;

    /* Breakpoints */
    --phone-max: 599px;
    --phone-landscape-max: 959px;
    --tablet-max: 1279px;
    --tablet-landscape-min: 960px;
    --desktop-min: 1280px;
}

/* Base Styles */
html {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 20px;
    letter-spacing: 0.01em;
    color: var(--gray-darker);
    box-sizing: border-box;
    height: 100%;
}

body {
    line-height: 20px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--gray-lightest);
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--gray-darker);
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.875rem;
    color: var(--gray-darker);
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--gray-darker);
}

p, .text-body {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 800px;
    margin-bottom: 1rem;
}

.text-small {
    font-size: 0.875rem;
}

.text-subtitle {
    font-size: 1.125rem;
    color: var(--gray-dark);
    margin-top: -0.5rem;
}

.text-upper {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.required {
    color: var(--cl-red);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--gray-dark);
    margin-top: 4px;
    display: block;
}

/* Layout System */
.vk-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.vk-layout--app-main {
    background-color: var(--gray-lightest);
}

/* Toolbar */
.vk-layout__toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--toolbar-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--content-padding-horizontal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar-section {
    display: flex;
    align-items: center;
}

.toolbar-section--align-start {
    justify-content: flex-start;
}

.toolbar-section--align-end {
    justify-content: flex-end;
    gap: 15px;
}

.toolbar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--cl-super-soft);
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Logo Styling */
.vk-layout__logo {
    display: flex;
    align-items: center;
}

.vk-layout__logo__symbol {
    width: 44px;
    height: 28.45px;
    margin-right: 12px;
}

.vk-layout__logo__text {
    width: 58px;
    height: 15.5px;
}

/* Main Menu */
.vk-layout__main-menu {
    position: fixed;
    top: var(--toolbar-height);
    left: 0;
    width: var(--permanent-drawer-width);
    height: calc(100vh - var(--toolbar-height));
    background-color: var(--gray-lighter);
    z-index: 8;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.vk-main-web-menu {
    height: 100%;
    padding: var(--gap-double) 0;
}

.vk-main-web-menu__item + .vk-main-web-menu__item {
    margin-top: 11px;
}

.vk-main-web-menu__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 32px;
    padding-right: 16px;
    text-transform: uppercase;
    height: 48px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-darker);
    transition: all 180ms ease;
    position: relative;
}

.vk-main-web-menu__link > i {
    margin-right: 16px;
    color: var(--gray-dark);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vk-main-web-menu__link:hover,
.vk-main-web-menu__link.activated {
    background-color: var(--cl-hard);
    color: var(--gray-lighter);
}

.vk-main-web-menu__link:hover > i,
.vk-main-web-menu__link.activated > i {
    color: var(--gray-lighter);
}

/* Main Content */
.vk-layout__main {
    margin-left: var(--permanent-drawer-width);
    margin-top: var(--toolbar-height);
    flex: 1;
    padding: var(--gap-double) var(--content-padding-horizontal);
}

.content-container {
    max-width: var(--content-container-max-width);
    margin: 0 auto;
    width: 100%;
}

.content-section {
    background-color: var(--white);
    border-radius: 4px;
    padding: var(--gap-double);
    margin-bottom: var(--gap-double);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Page Header */
.page-header {
    padding-bottom: var(--gap);
    border-bottom: 2px solid var(--cl-hard);
    margin-bottom: var(--gap-double);
}

/* Status Cards */
.status-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--cl-hard);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-card--success {
    border-left-color: var(--cl-green);
}

.status-card--warning {
    border-left-color: var(--cl-yellow);
}

.status-card--error {
    border-left-color: var(--cl-red);
}

.status-card__icon {
    width: 48px;
    height: 48px;
    background-color: var(--cl-super-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-card--success .status-card__icon {
    background-color: rgba(115, 188, 86, 0.1);
    color: var(--cl-green);
}

.status-card--warning .status-card__icon {
    background-color: rgba(246, 166, 35, 0.1);
    color: var(--cl-yellow);
}

.status-card--error .status-card__icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--cl-red);
}

.status-card__content {
    flex: 1;
}

.status-card__value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--gray-darker);
}

.status-card__label {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-top: 4px;
}

/* Filter Section */
.filter-section {
    background-color: var(--cl-super-soft);
    padding: var(--gap-double);
    border-radius: 4px;
    margin-bottom: var(--gap-double);
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--gap-double);
    padding-top: var(--gap-double);
    border-top: 1px solid var(--gray-light);
}

.search-field {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 8px 12px;
    min-width: 300px;
}

.search-field i {
    color: var(--gray-dark);
    margin-right: 8px;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    font-family: inherit;
}

/* Buttons */
.mdc-button {
    background-color: transparent;
    color: var(--cl-hard);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.0892857143em;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 64px;
    height: 36px;
}

.mdc-button:hover {
    background-color: var(--cl-super-soft);
}

.mdc-button--unelevated {
    background-color: var(--cl-hard);
    color: var(--white);
}

.mdc-button--unelevated:hover {
    background-color: #1e3a7a;
}

.mdc-button--outlined {
    background-color: transparent;
    color: var(--cl-hard);
    border: 1px solid var(--cl-hard);
    padding: 7px 15px;
}

.mdc-button--outlined:hover {
    background-color: var(--cl-super-soft);
}

.mdc-button:disabled {
    background-color: var(--gray-lighter);
    color: var(--gray);
    cursor: not-allowed;
}

.mdc-button i {
    margin-right: 8px;
    font-size: 18px;
}

.mdc-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-dark);
    transition: color 0.15s ease;
}

.mdc-icon-button:hover {
    color: var(--cl-hard);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--gap-double);
}

.form-label {
    display: block;
    margin-bottom: var(--gap);
    font-weight: 500;
    color: var(--gray-darker);
    font-size: 0.875rem;
}

.mdc-text-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-width: 200px;
}

.mdc-text-field__input {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--white);
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.mdc-text-field__input:focus {
    border-color: var(--cl-hard);
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 65, 143, 0.2);
}

.mdc-text-field__input::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

.mdc-text-field__input:disabled,
.mdc-text-field__input[readonly] {
    background-color: var(--gray-lightest);
    color: var(--gray-dark);
    cursor: not-allowed;
}

.textarea {
    resize: vertical;
    min-height: 100px;
    padding: 12px;
}

.mdc-select {
    position: relative;
    display: inline-flex;
    width: 100%;
}

.mdc-select__anchor {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 52px 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.15s ease;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
}

.mdc-select__anchor:focus {
    border-color: var(--cl-hard);
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 65, 143, 0.2);
}

.mdc-select__dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-dark);
}

/* Checkbox */
.mdc-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: var(--gap);
}

.mdc-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: var(--gap);
}

.mdc-checkbox__native-control {
    position: absolute;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.mdc-checkbox__background {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-dark);
    border-radius: 2px;
    background-color: transparent;
    transition: all 0.15s ease;
}

.mdc-checkbox__native-control:checked + .mdc-checkbox__background {
    background-color: var(--cl-hard);
    border-color: var(--cl-hard);
}

.mdc-checkbox__checkmark {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--white);
    font-size: 14px;
}

.mdc-checkbox__native-control:checked + .mdc-checkbox__background .mdc-checkbox__checkmark {
    opacity: 1;
}

/* Tables */
.vk-table {
    width: 100%;
    overflow-x: auto;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.vk-table table {
    width: 100%;
    border-collapse: collapse;
}

.vk-table__field-header {
    padding: 16px;
    text-align: left;
    font-weight: 500;
    color: var(--gray-darker);
    border-bottom: 2px solid var(--gray-light);
    background-color: var(--gray-lightest);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vk-table__field-header.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.vk-table__field-header.sortable:hover {
    background-color: var(--gray-smooth);
}

.vk-table__field-header .sort-icon {
    font-size: 16px;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.5;
}

.vk-table__field-header.sort-asc .sort-icon,
.vk-table__field-header.sort-desc .sort-icon {
    opacity: 1;
    color: var(--cl-hard);
}

.vk-table__field-header.sort-desc .sort-icon {
    transform: rotate(180deg);
}

.vk-table__cell {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-lighter);
    vertical-align: middle;
}

.vk-table__item-row:hover {
    background-color: var(--cl-super-soft);
}

.vk-table__item-row.selected {
    background-color: rgba(38, 65, 143, 0.1);
}

.vk-table__cell.align-right {
    text-align: right;
}

.vk-table__cell.align-center {
    text-align: center;
}

/* Grade Table Specific */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap-double);
}

.table-actions {
    display: flex;
    gap: var(--gap);
}

.vk-table--grades {
    margin-top: var(--gap-double);
}

.grade-select {
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
    min-width: 60px;
    background-color: var(--white);
    cursor: pointer;
}

.grade-select:focus {
    border-color: var(--cl-hard);
    outline: none;
}

.grade-select.grade-F,
.grade-select.grade-IG {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: var(--cl-red);
}

.grade-select.grade-A {
    background-color: rgba(115, 188, 86, 0.1);
    border-color: var(--cl-green);
}

.grade-select.grade-B,
.grade-select.grade-C,
.grade-select.grade-G,
.grade-select.grade-VG {
    background-color: rgba(38, 65, 143, 0.1);
    border-color: var(--cl-hard);
}

.table-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-dark);
}

.table-empty-state i {
    font-size: 64px;
    color: var(--gray);
    margin-bottom: 16px;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background-color: var(--cl-hard);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--gap-double);
    animation: slideUp 0.3s ease;
}

.bulk-actions-info {
    font-weight: 500;
}

.bulk-actions-buttons {
    display: flex;
    gap: var(--gap);
}

.bulk-actions-bar .mdc-button {
    color: var(--white);
}

.bulk-actions-bar .mdc-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.05em;
}

.badge--success {
    background-color: var(--cl-green);
    color: var(--white);
}

.badge--warning {
    background-color: var(--cl-yellow);
    color: var(--white);
}

.badge--error {
    background-color: var(--cl-red);
    color: var(--white);
}

.badge--info {
    background-color: var(--cl-hard);
    color: var(--white);
}

.badge--draft {
    background-color: var(--gray);
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: var(--gap-double);
    display: flex;
    align-items: flex-start;
}

.alert--success {
    background-color: rgba(115, 188, 86, 0.1);
    border-left: 4px solid var(--cl-green);
    color: var(--gray-darker);
}

.alert--warning {
    background-color: rgba(246, 166, 35, 0.1);
    border-left: 4px solid var(--cl-yellow);
    color: var(--gray-darker);
}

.alert--error {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--cl-red);
    color: var(--gray-darker);
}

.alert--info {
    background-color: rgba(38, 65, 143, 0.1);
    border-left: 4px solid var(--cl-hard);
    color: var(--gray-darker);
}

.alert__icon {
    margin-right: var(--gap);
    font-size: 20px;
    flex-shrink: 0;
}

/* Info Panel */
.info-panel {
    background-color: var(--cl-super-soft);
    padding: var(--gap-double);
    border-radius: 4px;
    border: 1px solid var(--cl-softer);
}

.info-item {
    display: flex;
    gap: var(--gap-double);
    align-items: flex-start;
}

.info-item i {
    color: var(--cl-hard);
    font-size: 24px;
    flex-shrink: 0;
}

.info-list {
    margin: 8px 0;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.info-list li {
    margin-bottom: 4px;
}

/* Grid System */
.mdc-layout-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.mdc-layout-grid__cell {
    grid-column: span 12;
}

.mdc-layout-grid__cell--span-6 {
    grid-column: span 6;
}

.mdc-layout-grid__cell--span-4 {
    grid-column: span 4;
}

.mdc-layout-grid__cell--span-3 {
    grid-column: span 3;
}

/* FAB */
.vk-fab-position {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 6;
}

.mdc-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--cl-green);
    color: var(--white);
    border: none;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2),
                0 6px 10px 0 rgba(0, 0, 0, 0.14),
                0 1px 18px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdc-fab:hover {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
                0 8px 10px 1px rgba(0, 0, 0, 0.14),
                0 3px 14px 2px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.mdc-fab__icon {
    font-size: 24px;
}

.vk-flyout {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.mdc-menu-surface__vk-positioner {
    position: absolute;
    bottom: 6px;
    width: 250px;
    left: -194px;
}

.mdc-menu {
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
                0 8px 10px 1px rgba(0, 0, 0, 0.14),
                0 3px 14px 2px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.8);
    transform-origin: bottom right;
    transition: all 0.15s ease;
    pointer-events: none;
}

.mdc-menu--open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.mdc-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.mdc-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: var(--gray-darker);
}

.mdc-list-item:hover {
    background-color: var(--cl-super-soft);
}

.mdc-list-item__graphic {
    margin-right: 16px;
    color: var(--gray-dark);
}

.mdc-list-item__text {
    font-size: 0.875rem;
    color: var(--gray-darker);
}

/* Dialogs */
.vk-dialog {
    z-index: 11;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vk-dialog--open {
    opacity: 1;
    visibility: visible;
}

.vk-dialog--large .mdc-dialog__surface {
    max-width: 900px;
}

.mdc-dialog__container {
    position: relative;
    z-index: 1;
}

.mdc-dialog__surface {
    max-width: 600px;
    max-height: calc(100vh - 120px);
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.mdc-dialog__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    margin-bottom: 16px;
}

.mdc-dialog__title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-darker);
}

.mdc-dialog__content {
    padding: 0 24px 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.mdc-dialog__actions {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--gray-lighter);
}

.mdc-dialog__scrim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Student Info Grid */
.student-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-double);
    margin-bottom: var(--gap-double);
    padding: var(--gap-double);
    background-color: var(--cl-super-soft);
    border-radius: 4px;
}

.info-group {
    display: flex;
    flex-direction: column;
}

.info-group label {
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.info-group span {
    color: var(--gray-darker);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gray-darker);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Spinner */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-lighter);
    border-top: 3px solid var(--cl-hard);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-lighter);
    border-top: 2px solid var(--cl-hard);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1279px) {
    .mdc-layout-grid__cell--span-3 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .vk-layout__main-menu {
        left: -280px;
        width: 280px;
        z-index: 12;
    }

    .vk-layout__main-menu--open {
        left: 0;
    }

    .vk-layout__main {
        margin-left: 0;
        padding: var(--gap-double) var(--content-padding-horizontal-phone);
    }

    .vk-layout__toolbar {
        padding: 0 var(--content-padding-horizontal-phone);
    }

    .mdc-layout-grid {
        gap: 8px;
    }

    .mdc-layout-grid__cell,
    .mdc-layout-grid__cell--span-6,
    .mdc-layout-grid__cell--span-4,
    .mdc-layout-grid__cell--span-3 {
        grid-column: span 12;
    }

    .vk-fab-position {
        right: 16px;
        bottom: 16px;
    }

    .content-section {
        padding: var(--gap-double) var(--gap);
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--gap);
    }

    .search-field {
        min-width: 100%;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--gap);
    }

    .table-actions {
        justify-content: space-between;
    }

    /* Responsive table */
    .vk-table--grades {
        overflow-x: auto;
    }

    .vk-table--grades table {
        min-width: 800px;
    }

    .bulk-actions-bar {
        flex-direction: column;
        gap: var(--gap);
    }

    .bulk-actions-buttons {
        width: 100%;
        justify-content: space-around;
    }

    .student-info-grid {
        grid-template-columns: 1fr;
    }

    .toolbar-user-info span {
        display: none;
    }

    .vk-layout__logo__text {
        display: none;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--cl-green);
}

.text-warning {
    color: var(--cl-yellow);
}

.text-error {
    color: var(--cl-red);
}

.text-info {
    color: var(--cl-hard);
}

.text-gray {
    color: var(--gray-dark);
}

/* Print Styles */
@media print {
    .vk-layout__toolbar,
    .vk-layout__main-menu,
    .vk-fab-position,
    .filter-section,
    .table-actions,
    .bulk-actions-bar,
    .mdc-button {
        display: none !important;
    }

    .vk-layout__main {
        margin: 0;
        padding: 0;
    }

    .content-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
