@font-face {
    font-family: 'AU Passata';
    src: url('/fonts/AUPassata_Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AU Passata';
    src: url('/fonts/AUPassata_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AU Passata';
    src: url('/fonts/AUPassata_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'AU Passata', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    line-height: 1.43;
    color: #484848;
    background-color: white;
    margin: 0;
    padding: 0;
}


#app {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    color: #002546;
}

#settings {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

main {
    display: flex;
    gap: 20px;
}

#course-panel {
    flex: 0 0 300px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    padding: 20px;
    overflow-y: auto;
    max-height: 80vh;
}

#semester-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.course {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: move;
    transition: background-color 0.3s;
}

.course:hover {
    background-color: #f0f0f0;
}

.semester {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    padding: 20px;
    min-height: 300px;
    transition: background-color 0.3s;
}

.semester.valid-drop {
    background-color: rgba(0, 255, 0, 0.1);
}

.semester.invalid-drop {
    background-color: rgba(255, 0, 0, 0.1);
}



#update-schedule {
    background-color: #002546;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn {
    background-color: #002546;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

#update-schedule:hover {
    background-color: #37a0cb;
}

.btn:hover {
    background-color: #37a0cb;
}

.valid-drop {
    background-color: rgba(0, 255, 0, 0.2);
}

.invalid-drop {
    background-color: rgba(255, 0, 0, 0.2);
}

.semester.highlight {
    background-color:rgba(0, 255, 0, 0.1);
    border: 2px dashed green;
}

#missing-courses-box {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

#missing-courses-summary {
    font-size: 1.3rem;
    font-weight: bold;
    color: #002546;
}

.recommendation-text {
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .course {
        width: 100%; 
    }
}

.course {
    touch-action: none; /* For at sikre at mobilen ikke fortolker swipe som scroll */
}
#mobile-course-popup {
    position: fixed;
    top: 20%;
    left: 10%;
    width: 80%;
    background: white;
    border: 2px solid #ccc;
    padding: 15px;
    z-index: 10000;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    border-radius: 10px;
}

#mobile-course-popup .close-popup {
    display: block;
    margin-bottom: 10px;
    background: #002546;
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 5px;
}
.card-header {
    background-color: #002546;
    color: white;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

#mobile-course-popup .mobile-selectable {
    background: #f8f9fa;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

#mobile-course-popup .course {
    font-size: 0.8em; /* Gør teksten lidt mindre */
    padding: 8px; /* Mindre polstring */
}

.category-badge {
    display: inline-block;
    margin-left: 10px;
    background-color: #002546;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em; /* Gør teksten på badgen endnu mindre */
}

@media (max-width: 768px) {
    #course-panel {
        display: none; /* Skjuler elementet på skærme mindre end 768px */
    }
    #missing-courses-box {
        display: block; /* Viser semester grid som blok på mindre skærme */
    }
}


.course.disabled {
    opacity: 0.5;
    pointer-events: none; /* Forhindrer klik på de deaktiverede kurser */
}

.course.disabled-elective {
    opacity: 0.5;
    pointer-events: none; /* Prevents interaction with faded elective courses in the panel */
}

.course.non-interactive {
    cursor: default;
    pointer-events: none;
    background-color: #e9ecef;
}




