.music-student-manager-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* TODO: this seems to be unused

.music-lesson-card {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    width: 250px;
    position: relative;
} */

.lesson-card-call-to-book {
    background: repeating-linear-gradient(45deg, #caeeb2 0px, #caeeb2 11px, #d9f7be 10px, #d9f7be 20px)
}

.lesson-card-swapped-lesson {
    background: repeating-linear-gradient(45deg, rgba(255, 0, 0, 0.1) 0px, rgba(255, 0, 0, 0.1) 11px, transparent 10px, transparent 20px);
}

.lesson-action {
    position: absolute;
    top: 5px;
    right: 5px;
}
.col-md-4 {
    margin-bottom: 1em;
}

.delete-lesson {
    color: #a00;
    text-decoration: none;
}

.student-manager-h2 {
    margin-bottom: 20px;
}

.student-manager-name {
    font-weight: bold;

}

.card.locked {
    filter: blur(2px);
}

.card.marked {
    border: 2px solid #449d44 !important;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.9);
}

.card.charge {
    background-color: inherit;
}

.euro-sign {
    position: relative;
    top: -0.23em;
    left: -1.1em;
    font-size: 12px;
    font-weight: bold;
    color: #d9534f;
    pointer-events: none;
}

.euro-sign:hover {
    color: #c9302c;
}

.free-slot {
    background-color: #d9f7be !important;
    border: 1px solid #a1d490 !important;
}

.apply-changes {
    margin-top: 20px;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.spinner {
    border: 16px solid #f3f3f3;
    /* Light grey */
    border-top: 16px solid #e45c00;
    /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255, 255, 255, 0.6); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.alert-box {
    transition: transform 1.5s ease, opacity 1.5s ease !important;
    transform-origin: 50% 50% !important;
    transform: translateZ(0);
    /* Force hardware acceleration */
    will-change: transform, opacity;
    /* Prepare browser for animation */
}


/* Add CSS to prevent caching visual artifacts: */
.student-manager-container {
    animation: fade 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cancelled_free,
.cancelled_charged {
    margin: 0.2em;
    padding: 0.2em;
    font-size: 0.8em;
    display: inline-block;
    width: 140px;
    border: 1px solid rgb(100, 100, 100);
    background-color: rgb(231, 231, 231);
    border-radius: 4px;
}

.cancelled_free {
    color: rgb(7, 80, 8);
}

.cancelled_charged {
    color: rgb(70, 8, 8);
}

.cancelled-lessons h2 a {
    transition: all 0.4s ease;
}

.caret-icon {
    transition: transform 0.4s ease;
    margin-right: 0.5rem;
}

.cancelled-lessons h2 [aria-expanded="true"] .caret-icon {
    transform: rotate(0deg);
    text-decoration: none;
}



/* Container for the login form */
.msm-login {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Heading */
.msm-login h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

/* Links (Log In and Register) */
.msm-login h4 a {
    color: #007bff;
    text-decoration: none;
}

.msm-login h4 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Form elements */
.msm-login .login-username,
.msm-login .login-password,
.msm-login .login-remember,
.msm-login .login-submit {
    margin-bottom: 15px;
}

/* Labels */
.msm-login label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

/* Input fields */
.msm-login .input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.msm-login .input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Remember me checkbox */
.msm-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #555;
}

.msm-login .login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Submit button */
.msm-login .login-submit .button-primary {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.msm-login .login-submit .button-primary:hover {
    background-color: #0056b3;
}

/* Error messages (if any) */
.msm-login .login-error {
    color: #dc3545;
    margin-bottom: 15px;
    text-align: center;
}

.msm-location {
    position: absolute;
    right: 1em;
    width: 2em;
    height: 2em;
    max-width: 2em;
    max-height: 2em;
}

#processing-time-text {
    margin-left: 8px;
    font-size: 0.9em;
    font-style: italic;
}

.student-manager-container.processing {
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.locked .btn {
    opacity: 0.5;
    pointer-events: none;
}