:root {
    --calendar-row-height: 60px;
    --light-blue: #cfe8ff;
    --dark-blue: #084298;
    --light-orange: #ffe5d0;
    --dark-orange: #8a3c00;
    --light-red: #f8d7da;
    --dark-red: #842029;
    --light-green: #d1e7dd;
    --dark-green: #0f5132;
}

body {
    font-family: 'Inter', sans-serif;
}

.navbar {
    z-index: 1050;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-brand {
    font-weight: 300;
}

.navbar-username {
    font-size: 14px;
    font-weight: 300;
}

.navbar-role {
    font-size: 12px;
    color: gray;
}

.navbar-button {
    border: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 300;
    color: rgb(80, 80, 80);
}

.navbar-button:hover {
    background-color: #e2e6ea; /* light gray */
}

.navbar-menu {
    width: 240px;
    top: 46px;
    z-index: 1040;
}

.navbar-menu-left {
    left: 0;
}

.navbar-menu-right {
    right: 0;
}

.navbar-menu-inner {
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
    border-radius: 0.25rem;
}

/* Calendar Widget */

#yearLabel {
    font-weight: 300;
    font-size: 1rem;
}

#weekLabelName {
    font-weight: 500;
}

#weekLabelDate {
    font-weight: 300;
    font-size: .9rem;
}

.weekday {
    font-size: .8rem;
}

.weekday > span {
    display: block;
    font-size: .6rem;
}

.calendar-slot {
    height: var(--calendar-row-height);
    position: relative;
    border-bottom: 1px solid #dee2e6;
}

.calendar-time-col {
    border-right: 1px solid #dee2e6;
}

.calendar-time-label {
    position: absolute;
    right: 0;
    bottom: -10px;
    font-size: 14px;
    padding-right: 8px;
}

/* Calendar Widget Event Slots */

.calendar-event {
    width: 100%;
    z-index: 5;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    overflow: hidden;
    font-size: 12px;
}

.calendar-event.cancelled {
    border-color: var(--light-red);
}

.calendar-event.confirmed {
    border-color: var(--light-green);
}

.calendar-event-header {
    background-color: #e9ecef;
    padding: 2px 6px;
    font-weight: 600;
    font-size: 12px;
    text-align: left;
}

.calendar-event-header > i {
    margin-left: 4px;
}

.calendar-event-header.cancelled {
    background-color: var(--light-red);
    color: var(--dark-red);
    text-decoration: line-through;
}

.calendar-event-header.confirmed {
    background-color: var(--light-green);
    color: var(--dark-green);
}

.calendar-event-header.confirmed.pupil-excused {
    color: var(--dark-orange);
}

.calendar-event-header.confirmed.pupil-noshow {
    color: var(--dark-red);
}

.calendar-event-body {
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event-subject {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-event-subject-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.calendar-event-subject-title {
    font-weight: 500;
}

.calendar-event-subject-trial {
    color: #6c757d;
    font-size: 10px;
}

.calendar-event-time {
    font-size: 11px;
    color: #6c757d; /* Bootstrap secondary text color */
}

/* Calendar Event Modal */

.modal-slider-wrapper {
    display: inline-block;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.modal-slider {
    display: flex;
    width: 300%;
    transition: transform 0.35s ease;
    transform: translateX(-33.3333%);
    height: 100%;
}

.modal-view {
    display: flex;
    width: 33.3333%;
    flex-direction: column;
    height: 100%;
    flex: 1 1 auto;
}

.pupil-attendance-button {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #495057;
}

.pupil-attendance-button.pupil-excused {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #664d03;
}

.pupil-attendance-button.pupil-noshow {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #842029;
}

.pupil-attendance-button.pupil-show {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #0f5132;
}

.calendar-modal-radio:checked, .calendar-modal-radio:checked:focus {
    background-color: orange;
}

.new-event-modal-tab1 {
    background-color: var(--light-blue) !important;
    color: var(--dark-blue) !important;
    font-weight: 400;
    border-top-right-radius: 0 !important;
}

.new-event-modal-tab2 {
    background-color: var(--light-orange) !important;
    color: var(--dark-orange) !important;
    font-weight: 400;
    border-top-left-radius: 0 !important;
}

.new-event-modal-tab1.active, .new-event-modal-tab2.active {
    font-weight: 600;
    border-color: transparent !important;
}

.overlap-pills {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1000;
}

.overlap-pill {
    width: 10px;           /* make wider or narrower if you want */
    height: 20px;          /* taller than wide */
    margin: 2px 0;         /* vertical spacing */
    background: #ccc;
    color: white;
    border-radius: 0 5px 5px 0;  /* top-left, top-right, bottom-right, bottom-left */
    text-align: center;
    line-height: 20px;     /* vertically center the number */
    cursor: pointer;
    font-size: 10px;
    box-sizing: border-box;
    margin-right: -10px;
    transition: background 0.2s;
}

.overlap-pill.active {
    background: #007bff; /* active pill is blue */
}

.recurrence-type-badge {
    background-color: #ffe5d0;
    color: #8a3c00;
    cursor: pointer;
}

.recurrence-type-badge.active {
    background-color: var(--dark-orange);
    color: #ffe5d0;
}

#createEventBtnSingle.custom-disabled, #createEventBtnRecurring.custom-disabled {
    opacity: .65;
    cursor: not-allowed;
}

.subject-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pricing-model-note {
    font-weight: 300;
    font-size: 10px;
    line-height: 8px;
    display: block;
}

#pupilsTable thead th {
    vertical-align: top;
}

.title-teacher-calendar {
    text-align: center;
    font-size: 24px;
    margin-top: 20px;
}

.subtitle-teacher-calendar {
    text-align: center;
    color: #E53935;
    font-weight: 400;
    margin-top: -10px;
}

.administration-table {
    border: 1px solid #e9ecef !important;
}

.administration-table .table thead th {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.85rem 1rem;
}

.administration-table .table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f3f5;
}

.administration-table .table tbody tr:last-child td {
    border-bottom: none;
}

.administration-table .table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.invoice-items-table {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
}

.invoice-items-table .table thead th {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

.invoice-items-table .table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
}

.invoice-items-table .table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-items-table .table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.invoice-items-table .table-light td {
    background-color: #f8f9fa;
}

.btn-soft-warning {
    background-color: #f6c76b;
    border-color: #f6c76b;
    color: #5a4500;
}

.btn-soft-warning:hover {
    background-color: #efb84f;
    border-color: #efb84f;
    color: #5a4500;
}

.btn-lexware {
    background-color: #FF4554;
    border-color: #FF4554;
    color: white;
}

.btn-lexware:hover {
    background-color: #ff6875;
    border-color: #ff6875;
    color: white;
}

.btn-lexware:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.invoice-download-warning {
    background-color: #f6c76b;
    color: #5a4500;
}

.btn-invoices {
    background-color: #6f42c1;
    color: white;
}

.btn-invoices:hover {
    background-color: #5a32a3;
    color: white;
}

.btn-calendar, .btn-reactivate {
    background-color: #20c997;
}

.btn-calendar:hover, .btn-reactivate:hover {
    background-color: #18a77c;
}

.btn-account {
    background-color: #0d6efd;
}

.btn-account:hover {
    background-color: #0b5ed7;
}

.btn-edit {
    background-color: #f0ad4e;
}

.btn-edit:hover {
    background-color: #d9962c;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-delete:hover {
    background-color: #bb2d3b;
    color: white;
}

.settings-section {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.settings-section h5 {
    font-size: 1.05rem;
}

.settings-section .form-label {
    font-size: 0.9rem;
    color: #555;
}

.settings-section .form-control {
    border-radius: 0.5rem;
}
