/* GENERAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.block {
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 14px 22px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background: #4a6fa5;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #3b5a87;
}

h3 {
    margin-bottom: 15px;
    text-align: center;
}


/* BANNER */
.banner {
    background: #4a6fa5;
    color: white;
    text-align: center;
    font-size: 100px;
    font-weight: bold;
    padding: 25px;
}


/* TOP BUTTON ROW */
.top-button-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}



/* PARAMETER ROW */
.parameters-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-top: 50px;
}

.parameters-row input {
    width: 50px;
    padding: 6px;
    font-size: 18px;
    text-align: center;
}


/* CONSTRAINT CREATOR */
.constraint-creator {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 30px;

    max-width: 1200px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
}


/* LEFT PANEL (SELECTORS) */
.left-panel-selectors {
    display: grid;
    grid-template-rows: 1fr 2fr;
    gap: 25px;
}

select {
    height: 200px;
    width: 100%;
    font-size: 16px;
    white-space: pre-wrap;
}


/* TOP ROW OF LEFT PANEL (STUDENTS & TOPICS) */
.student-topic-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.list-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}


/* BOTTOM ROW OF LEFT PANEL (CONSTRAINTS) */
.constraint-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.constraint-window {
    width: 100%;            /* like select width */
    height: 300px;       /* like select height */
    border: 1px solid #ccc;  /* mimic select border */
    border-radius: 4px;
    overflow-y: auto;        /* make it scrollable */
    overflow-x: hidden;      /* no horizontal scroll */
    background-color: white;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    white-space: pre-wrap;     /* allows wrapping */
}

.constraint-item {
    padding: 12px;
    margin-top: 2px;
    border-bottom: 1px solid black;
}

.delete-btn {
    padding: 5px;
    font-size: 18px;
    border: none;
    background: white;  
    color: #d00a0a; 
}

.delete-btn:hover {
    background: white;
}

/* RIGHT PANEL (CONSTRAINT BUTTONS) */
.right-panel-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
}

.top-constraint-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
}

#deleteConstraintBtn {
    font-weight: bold;
}


/* --- MESSAGE DISPLAY --- */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);   
    display: none;                     
    justify-content: center;
    align-items: center;
    z-index: 1000;                    
}

.message-box {
    background: white;
    padding: 25px 35px;
    border-radius: 10px;
    width: 380px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.message-text {
    white-space: pre-wrap;
}

.message-close {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 18px;
}
