:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-secondary-t: #f8f9fa55;
    --bg-accent: #e6f0ff;
    --bg-accent-t: #e6f0ff55;
    --text-primary: #212121;
    --text-secondary: #5a5a5a;
    --text-inverted: #ffffff;
    --text-link: #006abf;

    --color-primary: #006abf;
    --color-primary-opacity: #006abf22;
    --color-primary-off: #006abf55;
    --color-primary-hover: #0055a4;
    --color-primary-active: #004080;

    --color-success: #28a745;
    --color-success-hover: #218838;
    --color-danger: #dc3545;
    --color-danger-hover: #c82333;
    --color-warning: #ffc107;
    --color-gray: #6c757d;
    --color-gray-hover: #5a6268;

    --font-main: system-ui, -apple-system, sans-serif;
    --font-size: 14px;
    --font-size-sm: 13px;
    --font-size-lg: 16px;

    --border-radius: 3px;
    --border-radius-cont: 3px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);

    --width: 1200px;
    --width-lg: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
}

.container {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.header__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Main */
.main {
    padding: 20px 0;
    min-height: calc(100vh - 120px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: var(--font-size);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--text-inverted);
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--text-inverted);
}

.btn--full {
    width: 100%;
}

.btn--danger {
    background-color: var(--color-danger);
    color: var(--text-inverted);
}

.btn--danger:hover {
    background-color: var(--color-danger-hover);
}

.btn--small {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

/* Forms */
.form-group {
    /*margin-bottom: 20px;*/
}
.form-group * {
    font-size: 12px;
}

.form-input .form-select {
    padding: 5px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: var(--font-size);
    background-color: var(--bg-main);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-opacity);
}

/* Schedule Selector */
.schedule-selector {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius-cont);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.group-form {
    /*max-width: 400px;*/
}

.loading-status {
    display: flex;
    gap: 5px;
    align-items: center;
    align-content: center;
    margin-bottom: 1rem;
}

.loading-status__icon {
    display: flex;
    align-items: center;
}

.loading-status img {
    width: 20px;
    height: 20px;
}

/* Time Info */
.time-info {
    background-color: var(--bg-accent);
    padding: 20px 30px;
    border-radius: var(--border-radius-cont);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.time-info__current {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-info__label {
    font-weight: 500;
    color: var(--text-secondary);
}

.time-info__value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.time-info__remaining {
    font-weight: 600;
    animation: pulse 2s infinite;
}

.time-info__status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.time-info__status--class {
    background-color: var(--color-success);
    color: var(--text-inverted);
}

.time-info__status--break {
    background-color: var(--color-warning);
    color: var(--text-primary);
}

.time-info__status--before,
.time-info__status--after {
    background-color: var(--color-gray);
    color: var(--text-inverted);
}

.time-info__status--lunch {
    background-color: #ff9800;
    color: var(--text-inverted);
}

.time-info__status--special {
    background-color: #9c27b0;
    color: var(--text-inverted);
}

.time-details {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

/* Schedule Card */
.schedule-card {
    background-color: var(--bg-main);
    border-radius: var(--border-radius-cont);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.schedule-card__header {
    background-color: var(--bg-secondary);
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.schedule-meta {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Schedule Table */
.schedule-table-wrapper {
    overflow-x: auto;
    position: relative;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.schedule-table__header {
    background-color: var(--bg-secondary);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid #e0e0e0;
}

.schedule-table__row {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.schedule-table__row:nth-child(2n + 1) {
    background-color: var(--bg-secondary)
}

.schedule-table__row--past {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.schedule-table__row--past .schedule-table__cell {
    color: #6c757d;
}

.schedule-table__row--current {
    background-color: var(--bg-accent);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 106, 191, 0.2);
}


.schedule-table__row--current .schedule-table__cell:first-child {
    padding-left: 24px;
}

/* Added styling for lunch break rows and indicators */
.schedule-table__row--lunch {
    background-color: var(--color-primary-opacity);
    border-top: 2px solid var(--color-primary-active);
    border-bottom: 2px solid var(--color-primary-active);
    border-color: var(--color-primary-off);
}

.schedule-table__cell {
    padding: 15px 20px;
    vertical-align: top;
}

.schedule-table__cell--period {
    font-weight: 600;
    text-align: center;
    width: 20px;
    background-color: var(--bg-secondary-t);
}

.schedule-table__cell--time {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    width: 120px;
}

.schedule-table__cell--subject {
    font-weight: 500;
    min-width: 200px;
}

.schedule-table__cell--room {
    color: var(--text-secondary);
    width: 100px;
}

.schedule-table__cell--teacher {
    color: var(--text-secondary);
    min-width: 180px;
}

.schedule-table__cell--empty {
    text-align: left;
    color: var(--text-secondary);
    font-style: italic;
}

.schedule-table__cell--lunch {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-weight: 500;
}

.subgroup-label {
    display: inline-block;
    background-color: var(--color-primary-opacity);
    color: var(--color-primary);
    padding: 2px 4px;
    border-radius: 2px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-right: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.empty-state__text {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    padding: 20px;
}

.login-card {
    background-color: var(--bg-main);
    padding: 40px;
    border-radius: var(--border-radius-cont);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-card__title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.login-card__footer {
    text-align: center;
    margin-top: 20px;
}

.login-form {
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Links */
.link {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Admin Sections */
.admin-section {
    background-color: var(--bg-main);
    border-radius: var(--border-radius-cont);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.admin-section__header {
    background-color: var(--bg-secondary);
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-section__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.admin-section__description {
    color: var(--text-secondary);
    margin: 0;
}

.admin-section__content {
    padding: 30px;
}

.admin-actions {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.admin-actions__note {
    margin: 10px 0 0 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Admin Forms */
.admin-form {
    max-width: none;
}

/* Schedule Stats */
.schedule-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
}

/* Bell Schedule Grid */
.bell-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bell-schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.bell-schedule-item__group {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 100px;
}

.bell-schedule-item__select {
    flex: 1;
    max-width: 200px;
    margin-left: 20px;
}

/* Bell Schedule Preview */
.bell-schedules-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.bell-schedule-preview {
    background-color: var(--bg-accent);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.bell-schedule-preview__title {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.bell-schedule-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
}

.bell-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.bell-schedule-table th,
.bell-schedule-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.bell-schedule-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.bell-schedule-table td {
    color: var(--text-secondary);
}

/* Groups Overview */
.groups-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.group-overview-item {
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.group-overview-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.group-overview-item__title {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.group-overview-item__schedule {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}

.group-overview-item__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.group-overview-item__stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-overview-item__stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-overview-item__stats .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Progress Bar Styles */
.period-progress {
    margin-top: 8px;
    width: 100%;
}

.period-progress__bar {
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.period-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success) 0%, #20c997 100%);
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.period-progress__fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.period-progress--break .period-progress__fill {
    background: linear-gradient(90deg, var(--color-warning) 0%, #ffca28 100%);
}

.period-progress--lunch .period-progress__fill {
    background: linear-gradient(90deg, #ff9800 0%, #ffb74d 100%);
}

.period-progress--special .period-progress__fill {
    background: linear-gradient(90deg, #9c27b0 0%, #ba68c8 100%);
}

.progress-info {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--text-inverted);
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.notification--info {
    background-color: var(--color-primary);
}

.notification--success {
    background-color: var(--color-success);
}

.notification--warning {
    background-color: var(--color-warning);
    color: var(--text-primary);
}

.notification--error {
    background-color: var(--color-danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Group Settings Grid */
.group-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 5px;
    margin-bottom: 30px;
}

.group-settings-item {
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.group-settings-item__header h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-weight: 600;
}

.group-settings-item__controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Lunch Info */
.lunch-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lunch-info strong {
    color: var(--color-primary);
    font-weight: 600;
}

.lunch-note {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-style: italic;
}

.lunch-duration {
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.lunch-indicator {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 11px;
}

.lunch-icon {
    font-size: 18px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .schedule-table__header {
        padding: 10px 5px;
    }

    .container {
        padding: 0 15px;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header__actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .time-info {
        flex-direction: column;
        text-align: center;
    }

    .schedule-card__header {
        padding: 20px;
    }

    .schedule-table__cell {
        padding: 10px 5px;
    }

    .schedule-selector {
        padding: 20px;
    }

    .admin-section__header,
    .admin-section__content {
        padding: 20px;
    }

    .schedule-stats {
        flex-direction: column;
        gap: 15px;
    }

    .bell-schedule-grid {
        grid-template-columns: 1fr;
    }

    .bell-schedule-item {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .bell-schedule-item__select {
        margin-left: 0;
        max-width: none;
    }

    .bell-schedules-preview {
        grid-template-columns: 1fr;
    }

    .groups-overview {
        grid-template-columns: 1fr;
    }

    .group-overview-item__header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .group-overview-item__stats {
        flex-direction: column;
        gap: 10px;
    }

    .group-settings-grid {
        grid-template-columns: 1fr;
    }

    .group-settings-item__controls {
        gap: 10px;
    }

    .loading-status {
        padding: 12px 15px;
        font-size: var(--font-size-sm);
    }

    .groups-info {
        padding: 10px 12px;
        font-size: 12px;
    }

    .schedule-table-wrapper {
        border-radius: 0;
    }

    .schedule-table {
        font-size: 14px;
    }

    .schedule-table__cell {
        padding: 10px 5px;
    }

    .schedule-table__cell--period {
        width: 20px;
        font-size: 12px;
    }

    .schedule-table__cell--time {
        width: 90px;
        font-size: 12px;
    }

    .schedule-table__cell--subject {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .schedule-table__cell--teacher,
    .schedule-table__cell--room {
        display: none;
    }

    .schedule-table__header:nth-child(4),
    .schedule-table__header:nth-child(5) {
        display: none;
    }

    .current-time {
        font-size: 18px;
    }

    .time-remaining {
        font-size: 20px;
    }

    .status-info__label {
        font-size: 14px;
    }

    .schedule-table__cell {
        padding: 10px 5px;
    }

    .time-details {
        font-size: 10px;
    }

    .time-details .time-separator {
        display: none;
    }


    .time-details .time-half:first-child::after {
        content: "";
        height: 1px;
        margin-bottom: -4px;
        margin-left: -4px;
        width: calc(100% + 8px);
        display: block;
        background-color: var(--color-primary);
    }


    .time-half {
        padding: 1px 4px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced current status card with detailed progress information */
.current-status-card {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
    border-radius: var(--border-radius-cont);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.current-status-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--bg-main);
    border-bottom: 1px solid #e0e0e0;
}

.current-status-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.current-time {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: "Courier New", monospace;
    background-color: var(--bg-accent);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-primary);
    animation: pulse 2s infinite;
}

.current-status-card__content {
    padding: 25px 30px;
}

.status-info {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.status-info--class {
    background-color: #d4edda;
    border-left-color: var(--color-success);
}

.status-info--break {
    background-color: #fff3cd;
    border-left-color: var(--color-warning);
}

.status-info--lunch {
    background-color: #ffeaa7;
    border-left-color: #ff9800;
}

.status-info--special {
    background-color: #f3e5f5;
    border-left-color: #9c27b0;
}

.status-info--before,
.status-info--after {
    background-color: #e2e3e5;
    border-left-color: var(--color-gray);
}

.status-info__main {
    flex: 1;
}

.status-info__label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.status-info__subject {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.status-info__time {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.time-remaining {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: "Courier New", monospace;
    animation: pulse 2s infinite;
}

.time-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Enhanced table with better mobile support and visual indicators */
.period-number {
    font-size: 16px;
    font-weight: 600;
}

.period-indicator {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    animation: pulse 2s infinite;
}

.period-indicator--current {
    color: var(--color-success);
}

.period-indicator--past {
    color: var(--color-gray);
    animation: none;
}

.time-main {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.time-details {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-half {
    background-color: var(--bg-accent);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.time-separator {
    color: var(--color-primary);
    font-weight: bold;
}

.subject-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.subject-meta {
    display: none; /* Hidden on desktop, shown on mobile */
    font-size: 12px;
    color: var(--text-secondary);
    gap: 8px;
}

.subject-room,
.subject-teacher {
    display: inline-block;
}

.subject-room::after {
    content: " • ";
    color: var(--color-gray);
}

/* Enhanced mobile responsive design */
@media (max-width: 768px) {
    .current-status-card__header {
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .current-time {
        font-size: 20px;
        padding: 6px 12px;
    }

    .current-status-card__content {
        padding: 20px;
    }

    .status-info {
        flex-direction: column;
        text-align: left;
        gap: 15px;
        padding: 15px;
    }

    .status-info__time {
        align-items: start;
    }

    .time-remaining {
        font-size: 24px;
    }

    .status-info__label {
        font-size: 16px;
    }

    /* Show subject meta on mobile, hide separate columns */
    .subject-meta {
        display: flex;
        flex-wrap: wrap;
        margin-top: 4px;
    }

    .schedule-table__header--room,
    .schedule-table__header--teacher,
    .schedule-table__cell--room,
    .schedule-table__cell--teacher {
        display: none;
    }

    .schedule-table__cell--subject {
        min-width: auto;
    }

    .schedule-table__cell--time {
        width: auto;
        min-width: 80px;
    }

    .time-details {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    .period-progress__bar {
        height: 10px;
    }
}

@media (max-width: 480px) {
    .current-time {
        font-size: 18px;
    }

    .time-remaining {
        font-size: 20px;
    }

    .status-info__label {
        font-size: 14px;
    }

    .schedule-table__cell {
        padding: 10px 5px;
    }

    .time-details {
        font-size: 10px;
        gap: 5px;
    }

    .time-half {
        padding: 1px 4px;
    }
}
