/* ===== Cards ===== */ .card { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--bg-card-border); border-radius: var(--radius-md); padding: 1.75rem; position: relative; overflow: visible; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); animation: slideUpCard 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); } .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); opacity: 0; transition: opacity var(--transition); } .card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); border-color: rgba(255, 255, 255, 0.12); } .card:hover::before { opacity: 1; } .create-card { z-index: 10; } .card h2 { font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; } /* ===== Form Structure ===== */ .form-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; } .form-group { flex: 1; min-width: 160px; } .form-group label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; } .form-group input, .filter-row input { width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; outline: none; transition: all var(--transition); } .form-group input::placeholder, .filter-row input::placeholder { color: var(--text-placeholder); transition: opacity var(--transition); } .form-group input:focus, .filter-row input:focus { background: var(--bg-input-focus); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); transform: translateY(-1px); } .form-group input:focus::placeholder, .filter-row input:focus::placeholder { opacity: 0.5; } .form-group select, .filter-row select, .schedule-view-filter-grid select { width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; outline: none; transition: all var(--transition); } .form-group select:focus, .filter-row select:focus, .schedule-view-filter-grid select:focus { background: var(--bg-input-focus); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); } .stack-form { display: grid; gap: 1rem; } .stack-form textarea { width: 100%; min-height: 150px; resize: vertical; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; outline: none; transition: all var(--transition); } .stack-form textarea:focus { background: var(--bg-input-focus); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); } .schedule-view-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 1rem; align-items: end; } .schedule-view-metrics, .department-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .metric-grid { display: grid; gap: 0.75rem; } .metric-card, .department-comment-item { padding: 0.85rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); } .metric-card strong, .department-comment-item strong { display: block; margin-bottom: 0.35rem; color: var(--text-primary); } .metric-card span, .metric-card small, .department-comment-item span { display: block; color: var(--text-secondary); } .department-comment-list { display: grid; gap: 0.75rem; margin-top: 1rem; } .department-comment-item p { margin-top: 0.5rem; color: var(--text-primary); } .schedule-section-label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); margin: 1rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; } .schedule-group-select { max-width: 520px; } .schedule-group-select .select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .schedule-group-checkboxes { max-height: 220px; } .schedule-hours-panel { margin-top: 1rem; } .schedule-hours-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 0.75rem; } .schedule-hours-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; align-items: end; padding: 0.75rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); } .schedule-hours-title { grid-column: 1 / -1; color: var(--text-primary); font-weight: 700; } .schedule-slots-panel { margin-top: 1rem; margin-bottom: 1.25rem; min-width: 0; } .schedule-slots-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; overflow: visible; } .schedule-slot-row { display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)) auto; gap: 0.75rem; align-items: end; padding: 0.75rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); } .schedule-slot-row:last-child { margin-bottom: 0; } .schedule-slot-row.has-subgroup { grid-template-columns: repeat(8, minmax(125px, 1fr)) auto; } .schedule-rule-actions { margin-top: 0.25rem; clear: both; } .slot-subgroup-multi .select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .slot-subgroup-multi .dropdown-menu { min-width: 260px; } .schedule-slot-summary, .schedule-semester-line { margin-bottom: 0.35rem; } .schedule-semester-line { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; } .schedule-inline-table { margin-top: 1rem; } .schedule-visual-handle { position: fixed; top: 50%; right: 0; z-index: 905; width: 42px; height: 74px; border: 1px solid var(--bg-card-border); border-right: 0; border-radius: 10px 0 0 10px; background: color-mix(in srgb, var(--bg-card) 92%, var(--accent)); color: var(--text-primary); font: inherit; font-size: 1.8rem; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2); transform: translateY(-50%); transition: right var(--transition), background var(--transition), border-color var(--transition), color var(--transition); } .schedule-visual-handle:hover, .schedule-visual-handle.open { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--bg-card)); color: var(--accent-hover); } .schedule-visual-handle.open { right: min(92vw, 1180px); } .schedule-visual-backdrop { position: fixed; inset: 0; z-index: 880; background: rgba(0, 0, 0, 0.24); backdrop-filter: blur(2px); } .schedule-visual-drawer { position: fixed; top: 0; right: 0; z-index: 900; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(92vw, 1180px); height: 100vh; padding: 1rem; background: color-mix(in srgb, var(--bg-primary) 90%, var(--bg-card)); border-left: 1px solid var(--bg-card-border); box-shadow: -22px 0 55px rgba(0, 0, 0, 0.34); transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); } .schedule-visual-drawer.open { transform: translateX(0); } .schedule-visual-header { display: grid; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--bg-card-border); } .schedule-visual-header-main, .schedule-visual-filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; } .schedule-visual-header h2 { margin: 0 0 0.25rem; color: var(--text-primary); font-size: 1rem; text-transform: none; letter-spacing: 0; } .schedule-visual-toolbar { display: grid; gap: 0.55rem; } .schedule-visual-filter-head { align-items: center; } .schedule-visual-filter-head > span { color: var(--text-secondary); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; } .schedule-visual-filter-head div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; } .schedule-visual-group-filter { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem; } .schedule-visual-group-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 30px; padding: 0.25rem 0.58rem; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition); } .schedule-visual-group-chip:hover { background: var(--bg-hover); color: var(--text-primary); } .schedule-visual-group-chip input { width: 0.9rem; height: 0.9rem; margin: 0; accent-color: var(--accent); } .schedule-visual-group-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg-input)); color: var(--text-primary); } .schedule-visual-stage { min-height: 0; padding-top: 0.85rem; overflow: hidden; } .schedule-visual-state { height: 100%; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-input); } .schedule-visual-table-wrap { width: 100%; height: 100%; overflow: auto; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-primary); } .schedule-visual-table { min-width: 760px; border-collapse: collapse; table-layout: fixed; } .schedule-visual-table th, .schedule-visual-table td { border: 1px solid var(--bg-card-border); } .schedule-visual-table th { position: sticky; top: 0; z-index: 6; min-width: 168px; padding: 0.52rem; background: var(--bg-input); color: var(--text-primary); text-align: center; font-size: 0.78rem; font-weight: 800; text-transform: none; letter-spacing: 0; } .schedule-visual-table .schedule-visual-day-head, .schedule-visual-table .schedule-visual-time-head { z-index: 8; min-width: 96px; width: 96px; } .schedule-visual-table .schedule-visual-day-head { left: 0; } .schedule-visual-table .schedule-visual-time-head { left: 96px; } .schedule-visual-day-cell, .schedule-visual-time-cell { position: sticky; background: var(--bg-input); color: var(--text-primary); box-shadow: 1px 0 0 var(--bg-card-border); } .schedule-visual-day-cell { left: 0; z-index: 4; width: 96px; min-width: 96px; padding: 0.52rem; vertical-align: top; font-weight: 800; font-size: 0.74rem; line-height: 1.15; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; } .schedule-visual-time-cell { left: 96px; z-index: 4; width: 96px; min-width: 96px; padding: 0.48rem; vertical-align: middle; } .schedule-visual-time-cell strong, .schedule-visual-time-cell span { display: block; line-height: 1.15; } .schedule-visual-time-cell span { margin-top: 0.2rem; color: var(--text-secondary); font-size: 0.66rem; } .schedule-visual-lesson-cell { height: 1px; min-width: 168px; padding: 0 !important; vertical-align: stretch; background: var(--bg-primary); } .schedule-visual-lesson-cell-empty { background: color-mix(in srgb, var(--bg-input) 42%, var(--bg-primary)); } .schedule-visual-unified { min-height: 96px; height: 100%; display: flex; flex-direction: column; gap: 0.22rem; padding: 0.34rem; } .schedule-visual-unified { justify-content: flex-start; background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary)); } .schedule-visual-half { position: relative; min-height: 56px; display: flex; flex-direction: column; gap: 0.22rem; padding: 1.28rem 0.34rem 0.34rem; background: color-mix(in srgb, var(--accent) 13%, var(--bg-primary)); } .schedule-visual-half + .schedule-visual-half { border-top: 1px solid var(--bg-card-border); } .schedule-visual-half-even { background: color-mix(in srgb, var(--success) 8%, var(--bg-primary)); } .schedule-visual-half-label { position: absolute; top: 0.35rem; left: 0.45rem; max-width: calc(100% - 0.9rem); padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--bg-input); color: var(--text-secondary); font-size: 0.58rem; font-weight: 800; line-height: 1.1; white-space: nowrap; } .schedule-visual-half-odd .schedule-visual-half-label { color: var(--accent-hover); } .schedule-visual-half-even .schedule-visual-half-label { color: var(--success); } .schedule-visual-lesson { display: grid; gap: 0.12rem; padding: 0.34rem; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-card); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); } .schedule-visual-lesson strong { color: var(--text-primary); font-size: 0.7rem; line-height: 1.18; } .schedule-visual-lesson strong span { color: var(--accent-hover); font-weight: 800; } .schedule-visual-lesson small { color: var(--text-secondary); font-size: 0.6rem; line-height: 1.14; } .schedule-visual-free { display: flex; align-items: center; justify-content: center; min-height: 100%; color: var(--text-secondary); font-size: 0.78rem; } @media (max-width: 640px) { .schedule-visual-drawer { width: 100vw; padding: 0.75rem; } .schedule-visual-handle.open { right: calc(100vw - 42px); } .schedule-visual-header { display: grid; grid-template-columns: 1fr; } .schedule-visual-header-main, .schedule-visual-filter-head { display: grid; grid-template-columns: 1fr; } } .calendar-fill-panel { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; gap: 0.75rem; align-items: end; margin: 1rem 0; padding: 0.75rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); } .academic-calendar-grid { display: grid; gap: 0.65rem; margin-top: 1rem; } .calendar-course-block { border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bg-input) 82%, var(--bg-card)); overflow: hidden; } .calendar-course-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 0.6rem 0.85rem; cursor: pointer; list-style: none; user-select: none; transition: background var(--transition); } .calendar-course-header::-webkit-details-marker { display: none; } .calendar-course-header:hover { background: var(--bg-hover); } .calendar-course-block[open] .calendar-course-header { border-bottom: 1px solid var(--bg-card-border); } .calendar-course-title { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.96rem; font-weight: 800; } .calendar-course-chevron { width: 9px; height: 9px; border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary); transform: rotate(-45deg); transition: transform var(--transition), border-color var(--transition); } .calendar-course-block[open] .calendar-course-chevron { transform: rotate(45deg); border-color: var(--accent-hover); } .calendar-course-meta { color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; } .calendar-semesters-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-items: stretch; gap: 0.65rem; padding: 0.65rem; overflow-x: hidden; overflow-y: hidden; } .calendar-semester-block { display: flex; flex-direction: column; width: 100%; max-width: 100%; height: auto; min-height: 0; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-card); overflow: hidden; } .calendar-semester-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 32px; padding: 0.38rem 0.55rem; border-bottom: 1px solid var(--bg-card-border); } .calendar-semester-header h4 { margin: 0; font-size: 0.86rem; } .calendar-semester-header span { color: var(--text-secondary); font-size: 0.72rem; white-space: nowrap; } .calendar-semester-table-wrap { flex: 1 1 auto; display: flex; min-height: 151px; overflow-x: auto; overflow-y: visible; background: var(--bg-primary); scrollbar-width: none; } .calendar-semester-table-wrap::-webkit-scrollbar { width: 0; height: 0; } .calendar-semester-table { --calendar-day-head-width: 32px; --calendar-day-cell-size: 22px; --calendar-min-table-width: 538px; width: 100%; min-width: var(--calendar-min-table-width); max-width: none; min-height: 100%; flex: 1 1 auto; border-collapse: collapse; table-layout: fixed; font-size: 0.62rem; user-select: none; } .calendar-semester-table th, .calendar-semester-table td { box-sizing: border-box; border: 1px solid var(--bg-card-border); } .calendar-semester-table tbody tr { height: var(--calendar-day-cell-size); } .calendar-day-head-col { width: var(--calendar-day-head-width); } .calendar-week-col { width: calc((100% - var(--calendar-day-head-width)) / var(--calendar-week-columns, 1)); } .calendar-semester-table thead th { position: sticky; top: 0; z-index: 1; height: var(--calendar-day-cell-size); padding: 0; background: var(--bg-input); color: var(--text-secondary); font-weight: 700; text-align: center; line-height: 1; white-space: nowrap; } .calendar-semester-table .calendar-day-head { position: sticky; left: 0; z-index: 2; width: var(--calendar-day-head-width); min-width: var(--calendar-day-head-width); max-width: var(--calendar-day-head-width); background: var(--bg-input); color: var(--text-secondary); font-weight: 700; text-align: center; } .calendar-day { position: relative; height: var(--calendar-day-cell-size); min-height: var(--calendar-day-cell-size); padding: 0; background: color-mix(in srgb, var(--activity-color, var(--accent)) 12%, var(--bg-card)); border-color: color-mix(in srgb, var(--activity-color, var(--accent)) 28%, var(--bg-card-border)); cursor: pointer; outline: none; box-shadow: none; text-align: center; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), filter var(--transition); } .calendar-day:hover, .calendar-day:focus-visible { background: color-mix(in srgb, var(--activity-color, var(--accent)) 24%, var(--bg-card)); border-color: color-mix(in srgb, var(--activity-color, var(--accent)) 50%, var(--bg-card-border)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--activity-color, var(--accent)) 30%, transparent); z-index: 3; } .calendar-day.is-selected { background: color-mix(in srgb, var(--activity-color, var(--accent)) 34%, var(--bg-card)); border-color: color-mix(in srgb, var(--activity-color, var(--accent)) 64%, var(--bg-card-border)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--activity-color, var(--accent)) 44%, transparent); filter: saturate(1.08); z-index: 4; } .calendar-day-code { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 2px; color: var(--text-primary); font-size: 0.6rem; line-height: 1; font-weight: 800; text-shadow: 0 1px 0 color-mix(in srgb, var(--bg-primary) 70%, transparent); } .calendar-day-time-marker { position: absolute; right: 0; bottom: 0; padding: 0 1px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 0.4rem; font-weight: 800; line-height: 1.15; } .calendar-day-activity { display: none !important; } .calendar-day-tooltip { position: fixed; z-index: 1200; width: min(280px, calc(100vw - 24px)); padding: 0.75rem; border: 1px solid color-mix(in srgb, var(--activity-color, var(--accent)) 26%, var(--bg-card-border)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bg-primary) 88%, var(--bg-card)); color: var(--text-primary); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(4px) scale(0.98); transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease; } .calendar-day-tooltip.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } .calendar-day-tooltip-head { display: flex; align-items: center; gap: 0.65rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--bg-card-border); } .calendar-day-tooltip-head strong, .calendar-day-tooltip-body strong { display: block; color: var(--text-primary); font-size: 0.85rem; line-height: 1.25; } .calendar-day-tooltip-head span, .calendar-day-tooltip-body span { display: block; color: var(--text-secondary); font-size: 0.68rem; line-height: 1.2; } .calendar-day-tooltip-code { width: 34px; min-width: 34px; height: 34px; box-sizing: border-box; border-radius: 8px; background: color-mix(in srgb, var(--activity-color, var(--accent)) 24%, transparent); border: 1px solid color-mix(in srgb, var(--activity-color, var(--accent)) 56%, transparent); color: var(--text-primary); font-size: 0.86rem; font-weight: 800; line-height: 1; padding: 0; text-align: center; } .calendar-day-tooltip-head .calendar-day-tooltip-code { display: inline-grid; place-items: center; } .calendar-day-tooltip-code span { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; font: inherit; line-height: 1; transform: none; } .calendar-day-tooltip-body { display: grid; gap: 0.45rem; padding-top: 0.65rem; } .calendar-empty-day { height: var(--calendar-day-cell-size); background: color-mix(in srgb, var(--bg-input) 65%, transparent); } .calendar-week-placeholder { color: transparent; } .calendar-empty-semester { flex: 1; display: flex; align-items: center; padding: 0.75rem; color: var(--text-secondary); font-size: 0.82rem; } .calendar-totals { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; } .calendar-total-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 28px; padding: 0.25rem 0.6rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--chip-color) 18%, transparent); border: 1px solid color-mix(in srgb, var(--chip-color) 52%, transparent); color: var(--text-primary); font-size: 0.8rem; font-weight: 600; } .calendar-total-chip.is-selected { background: color-mix(in srgb, var(--chip-color) 30%, var(--bg-card)); border-color: color-mix(in srgb, var(--chip-color) 72%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color) 22%, transparent); } .calendar-total-selected { padding: 0.08rem 0.32rem; border-radius: 999px; background: color-mix(in srgb, var(--chip-color) 18%, var(--bg-primary)); color: var(--text-secondary); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; } #calendar-day-dialog.modal-overlay { background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(3px); } #calendar-day-dialog .calendar-day-dialog-card { width: min(470px, 100%); max-height: none; padding: 1rem 1rem 0.85rem; overflow: visible; background: color-mix(in srgb, var(--bg-primary) 88%, var(--bg-card)); border-radius: 18px; } .calendar-day-dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; margin: 0.45rem 0; } .calendar-day-dialog-grid div { padding: 0.58rem 0.65rem; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-input); } .calendar-day-dialog-grid span { display: block; color: var(--text-secondary); font-size: 0.78rem; margin-bottom: 0.25rem; } .calendar-day-dialog-grid strong { font-size: 0.9rem; } .calendar-day-dialog-activity { display: flex; gap: 0.7rem; align-items: center; margin: 0.55rem 0 0.65rem; padding: 0.6rem; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--bg-card-border); } .calendar-day-dialog-code { width: 40px; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--activity-color, var(--accent)) 20%, transparent); border: 1px solid color-mix(in srgb, var(--activity-color, var(--accent)) 55%, transparent); font-weight: 800; } .calendar-day-dialog-activity p { margin: 0.2rem 0 0; color: var(--text-secondary); font-size: 0.85rem; } .calendar-day-dialog-time-grid { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--bg-card-border); } .calendar-day-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; margin-bottom: 0; } #calendar-day-dialog-time-alert { margin: 0; padding: 0; } #calendar-day-dialog-time-alert.error, #calendar-day-dialog-time-alert.success { margin-top: 0.55rem; padding: 0.5rem 0.75rem; } .profiles-context { color: var(--text-secondary); font-weight: 600; margin: -0.25rem 0 0.75rem; } .muted { color: var(--text-secondary); } @media (max-width: 1180px) { .schedule-view-filter-grid, .schedule-view-metrics, .department-workspace-grid { grid-template-columns: 1fr; } .schedule-hours-grid { grid-template-columns: 1fr; } .schedule-slot-row, .schedule-slot-row.has-subgroup { grid-template-columns: repeat(2, minmax(180px, 1fr)); } .calendar-fill-panel { grid-template-columns: repeat(2, minmax(180px, 1fr)); } .calendar-semesters-grid { grid-template-columns: 1fr; grid-auto-rows: auto; overflow-x: auto; scrollbar-width: thin; } .calendar-semester-block { height: auto; min-height: 0; } .calendar-semester-header { align-items: flex-start; flex-direction: column; gap: 0.2rem; } } @media (max-width: 640px) { .schedule-hours-row { grid-template-columns: 1fr; } .schedule-slot-row, .schedule-slot-row.has-subgroup { grid-template-columns: 1fr; } .calendar-fill-panel { grid-template-columns: 1fr; } .calendar-day-dialog-grid { grid-template-columns: 1fr; } #calendar-day-dialog .calendar-day-dialog-card { max-height: calc(100vh - 2rem); overflow-y: auto; } } /* Hide Number Arrows */ input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type="number"] { -moz-appearance: textfield; appearance: textfield; } /* ===== Premium Custom Dropdown Styles ===== */ .custom-select-wrapper { position: relative; width: 100%; user-select: none; font-family: inherit; } .select-layer-active { position: relative; z-index: 300; } .custom-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.95rem; cursor: pointer; outline: none; transition: all var(--transition); } .filter-row .custom-select-trigger { padding: 0.45rem 1rem; font-size: 0.85rem; border-color: transparent; } .custom-select-trigger:hover { background: var(--bg-hover); } .custom-select-trigger:focus, .custom-select-wrapper.open .custom-select-trigger { background: var(--bg-input-focus); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); transform: translateY(-1px); } .filter-row .custom-select-wrapper.open .custom-select-trigger, .filter-row .custom-select-trigger:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .custom-select-trigger.placeholder-active .custom-select-text { color: var(--text-placeholder); } .custom-select-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .custom-select-icon { margin-left: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); } .custom-select-wrapper.open .custom-select-icon { transform: rotate(180deg); color: var(--accent); } .custom-select-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; width: 100%; max-height: 280px; overflow-y: auto; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--bg-card-border); border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset; padding: 0.5rem; z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top center; transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease; list-style: none; margin: 0; } .custom-select-wrapper.open .custom-select-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } /* Custom Scrollbar for Dropdown */ .custom-select-menu::-webkit-scrollbar { width: 6px; } .custom-select-menu::-webkit-scrollbar-track { background: transparent; border-radius: 8px; } .custom-select-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 8px; } .custom-select-menu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); } .custom-select-item { padding: 0.6rem 0.8rem; margin-bottom: 0.15rem; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease; } .custom-select-item:last-child { margin-bottom: 0; } .custom-select-item:hover:not(.disabled) { background: var(--bg-hover); padding-left: 1.1rem; } .custom-select-item.selected { background: var(--accent-glow); color: #fff; font-weight: 500; } .custom-select-item.selected:hover { background: var(--accent-glow); padding-left: 0.8rem; } .custom-select-item.disabled { color: var(--text-secondary); opacity: 0.6; cursor: not-allowed; } .custom-select-item.placeholder-item { display: none; /* Hide placeholder options in the actual dropdown list naturally */ } /* Light theme selects */ [data-theme="light"] .form-group input, [data-theme="light"] .filter-row input, [data-theme="light"] .custom-select-trigger { border-color: rgba(0, 0, 0, 0.15); } [data-theme="light"] .custom-select-menu { background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05) inset; } [data-theme="light"] .custom-select-menu::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); } [data-theme="light"] .custom-select-menu::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); } [data-theme="light"] .custom-select-item.selected { background: rgba(99, 102, 241, 0.15); color: var(--accent-hover); } /* Filter Row */ .card-header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; } .card-header-row h2 { margin-bottom: 0; } .filter-row { display: flex; align-items: center; gap: 0.5rem; } .filter-row label { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; } .filter-row input { padding: 0.45rem 2rem 0.45rem 0.7rem; background: var(--bg-input); border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.85rem; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition); } .filter-row input:focus { background-color: var(--bg-input-focus); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } /* ===== Custom Multi-Select ===== */ .custom-multi-select { position: relative; user-select: none; width: 100%; } .select-box { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.95rem; cursor: pointer; transition: all var(--transition); } .select-box:hover { background: var(--bg-hover); } .select-box.active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); } .dropdown-icon { transition: transform var(--transition); } .select-box.active .dropdown-icon { transform: rotate(180deg); } .dropdown-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; width: 100%; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--bg-card-border); border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset; padding: 0.5rem; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top center; transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease; } [data-theme="light"] .custom-multi-select .dropdown-menu { background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05) inset; } .dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } .dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); } .checkbox-group-vertical { display: flex; flex-direction: column; gap: 0.25rem; max-height: 250px; overflow-y: auto; padding-right: 0.25rem; } .checkbox-group-vertical::-webkit-scrollbar { width: 6px; } .checkbox-group-vertical::-webkit-scrollbar-track { background: transparent; border-radius: 8px; } .checkbox-group-vertical::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 8px; } .checkbox-group-vertical::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); } [data-theme="light"] .checkbox-group-vertical::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); } [data-theme="light"] .checkbox-group-vertical::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); } .checkbox-item { display: flex; align-items: center; position: relative; padding: 0.5rem 0.5rem 0.5rem 2.25rem; cursor: pointer; font-size: 0.9rem; color: var(--text-primary); border-radius: var(--radius-sm); user-select: none; transition: background 0.2s ease; } .checkbox-item:hover { background: var(--bg-hover); } .checkbox-item input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } .checkbox-item .checkmark { position: absolute; top: 50%; left: 0.6rem; transform: translateY(-50%); height: 1.15rem; width: 1.15rem; background-color: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: 4px; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; } .checkbox-item:hover input ~ .checkmark { border-color: var(--accent); } .checkbox-item input:focus ~ .checkmark { box-shadow: 0 0 0 3px var(--accent-glow); } .checkbox-item input:checked ~ .checkmark { background-color: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); } .checkmark::after { content: ""; display: none; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px; } .checkbox-item input:checked ~ .checkmark::after { display: block; } /* ===== Buttons ===== */ .btn-primary { position: relative; overflow: hidden; padding: 0.75rem 1.75rem; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); border: none; border-radius: var(--radius-sm); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; white-space: nowrap; transition: all var(--transition); box-shadow: 0 4px 15px var(--accent-glow); } .btn-primary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0.2), transparent); border-radius: inherit; opacity: 0; transition: opacity var(--transition); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); } .btn-primary:hover::before { opacity: 1; } .btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 10px var(--accent-glow); } .btn-delete { padding: 0.35rem 0.7rem; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); border-radius: var(--radius-sm); color: var(--error); font-family: inherit; font-size: 0.8rem; cursor: pointer; transition: background var(--transition), transform var(--transition); position: relative; overflow: hidden; } .btn-delete:hover { background: rgba(248, 113, 113, 0.2); transform: scale(1.05); } .btn-icon-toggle { background: transparent; border: 1px solid var(--bg-card-border); color: var(--text-secondary); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); padding: 0; } .btn-icon-toggle:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px var(--accent-glow); } .btn-edit-classroom { padding: 0.35rem 0.7rem; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: var(--radius-sm); color: var(--accent-hover); cursor: pointer; transition: all var(--transition); } .btn-edit-classroom:hover { background: rgba(99, 102, 241, 0.2); transform: translateY(-1px); } /* ===== Alerts ===== */ .form-alert { display: none; padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; margin-top: 0.75rem; } .form-alert.error { display: block; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); color: var(--error); animation: slideDownAlert 0.3s ease-out both; } .form-alert.success { display: block; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2); color: var(--success); animation: slideDownAlert 0.3s ease-out both; } /* ===== Table ===== */ .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } thead th { text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--bg-card-border); } /* Sortable columns */ thead th.sortable { cursor: pointer; user-select: none; white-space: nowrap; transition: color 0.2s ease; } thead th.sortable:hover { color: var(--accent); } thead th.sortable.sort-active { color: var(--accent); } .sort-arrow { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: 0.3; transition: transform 0.25s ease, opacity 0.25s ease; } thead th.sortable:hover .sort-arrow { opacity: 0.6; } thead th.sortable.sort-asc .sort-arrow { opacity: 1; border-bottom: 5px solid var(--accent); transform: rotate(0deg); } thead th.sortable.sort-desc .sort-arrow { opacity: 1; border-bottom: 5px solid var(--accent); transform: rotate(180deg); } /* ===== Filter Icon & Popup ===== */ thead th.filterable { cursor: pointer; user-select: none; white-space: nowrap; transition: color 0.2s ease; } thead th.filterable:hover { color: var(--accent); } .filter-icon { display: inline-block; margin-left: 4px; font-size: 0.65rem; opacity: 0.4; cursor: pointer; transition: opacity 0.2s ease, color 0.2s ease; vertical-align: middle; } thead th.filterable:hover .filter-icon { opacity: 0.8; } thead th.filter-active .filter-icon { opacity: 1; color: var(--accent); } thead th.filter-active { color: var(--accent); } .filter-popup { position: absolute; top: 100%; left: 0; min-width: 220px; max-width: 280px; background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); padding: 0.75rem; z-index: 200; animation: filterPopupIn 0.2s ease-out both; text-transform: none; } [data-theme="light"] .filter-popup { background: rgba(255, 255, 255, 0.98); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); } @keyframes filterPopupIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } } .filter-search { width: 100%; padding: 0.5rem 0.7rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: 6px; color: var(--text-primary); font-family: inherit; font-size: 0.85rem; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; margin-bottom: 0.5rem; } .filter-search::placeholder { color: var(--text-placeholder); } .filter-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .filter-btn-row { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; } .filter-btn-action { flex: 1; padding: 0.3rem 0.5rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: 6px; color: var(--text-secondary); font-family: inherit; font-size: 0.75rem; cursor: pointer; transition: all 0.2s ease; } .filter-btn-action:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); } .filter-list { max-height: 180px; overflow-y: auto; margin-bottom: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--bg-card-border) transparent; } .filter-list::-webkit-scrollbar { width: 4px; } .filter-list::-webkit-scrollbar-thumb { background: var(--bg-card-border); border-radius: 2px; } .filter-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.3rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; color: var(--text-primary); transition: background 0.15s ease; } .filter-item:hover { background: var(--bg-hover); } .filter-item input[type="checkbox"] { cursor: pointer; width: 1rem; height: 1rem; accent-color: var(--accent); flex-shrink: 0; } .filter-btn-apply { width: 100%; padding: 0.5rem; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); border: none; border-radius: 6px; color: #fff; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 3px 10px var(--accent-glow); } .filter-btn-apply:hover { transform: translateY(-1px); box-shadow: 0 5px 15px var(--accent-glow); } tbody td { padding: 0.85rem 1rem; font-size: 0.95rem; border-bottom: 1px solid var(--bg-card-border); transition: background var(--transition); } [data-theme="light"] tbody td { border-bottom-color: rgba(0, 0, 0, 0.08); } tbody tr { transition: background var(--transition); animation: slideInRow 0.3s ease-out both; } /* Animation delays */ tbody tr:nth-child(1) { animation-delay: 0.05s; } tbody tr:nth-child(2) { animation-delay: 0.1s; } tbody tr:nth-child(3) { animation-delay: 0.15s; } tbody tr:nth-child(4) { animation-delay: 0.2s; } tbody tr:nth-child(5) { animation-delay: 0.25s; } tbody tr:nth-child(n+6) { animation-delay: 0.3s; } tbody tr:hover { background: var(--bg-hover); } .loading-row { text-align: center; color: var(--text-secondary); padding: 2rem !important; } /* ===== Badges ===== */ .badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; } .badge-admin { background: rgba(248, 113, 113, 0.15); color: var(--error); } .badge-teacher { background: rgba(251, 191, 36, 0.15); color: var(--warning); } .badge-student { background: rgba(52, 211, 153, 0.15); color: var(--success); } .badge-ef { background: rgba(99, 102, 241, 0.15); color: var(--accent-hover); } /* Classroom Status */ .badge-available { background: rgba(16, 185, 129, 0.15); color: var(--success); } .badge-unavailable { background: rgba(248, 113, 113, 0.15); color: var(--error); } .status-cell { display: flex; align-items: center; gap: 8px; } /* ===== Theme Toggle Button ===== */ .theme-toggle { width: 42px; height: 42px; border: none; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--bg-card-border); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; z-index: 100; flex-shrink: 0; } .theme-toggle svg { width: 20px; height: 20px; transition: transform 0.4s ease; } .theme-toggle:hover { transform: scale(1.1); box-shadow: 0 4px 16px var(--accent-glow); } .theme-toggle:active { transform: scale(0.95); } .theme-toggle--fixed { position: fixed; top: 1.25rem; right: 1.25rem; }