/* 1. Reset and Body */
body {
    background-color: rgb(223, 201, 188); 
    color: rgb(30, 41, 59);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* 2. Header */
#header {
    background-color: rgb(241, 112, 20); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#imgtitle {
    display: flex;
    align-items: center;
    gap: 15px;
}

#title {
    color: white;
    margin: 0;
    font-size: 2rem;
}

#links {
    display: flex;
    gap: 10px;
}

/* 3. Navigation Buttons */
.nav-btn {
    background-color: black;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13.5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.nav-btn:hover {
    color: rgb(241, 112, 20);
    background-color: white;
}

.nav-btn.active-page {
    background-color: #fff !important;
    color: rgb(241, 112, 20) !important;
}

/* 4. Selectors */
#selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    padding: 0 20px;
}

#selectors select {
    appearance: none; 
    background-color: rgb(241, 112, 20);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

#selectors select option {
    background-color: #ffffff !important; 
    color: rgb(241, 112, 20) !important;
    padding: 10px;
}

#selectors select:focus {
    box-shadow: 0 0 0 3px rgba(241, 112, 20, 0.4);
}

/* 5. Comparer Table */
table {
    margin: 20px auto 50px; 
    border-collapse: collapse; 
    background-color: #fff;
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #000 !important; 
    color: #f17014 !important;       
    padding: 18px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

tr:not(.interval) td:first-child {
    background-color: #1e293b !important;
    color: #f17014 !important;        
    font-weight: bold;
    text-align: center;
    width: 140px;
    border-right: 3px solid #f17014;
}

.interval {
    background: linear-gradient(to right, rgb(241, 112, 20), rgb(255, 140, 0)) !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
}

td {
    padding: 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    color: #334155;
    font-size: 14px;
}

td:hover:not(:first-child):not(.interval) {
    background-color: #f17014 !important;
    color: #fff !important;
    cursor: pointer;
}

#TimeTableSubmit {
    height: 46px; 
    padding: 0 25px; 
    background-color: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#TimeTableSubmit:hover {
    background-color: #f17014;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(241, 112, 20, 0.3);
}

/* 6. Group Timetables Section */
.group-timetables {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.group-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.group-section h2 {
    color: #1e293b;
    margin-bottom: 10px;
}

.center-text {
    text-align: center;
}

.group-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.group-table th {
    background-color: #222 !important;
    color: #f17014 !important;
    padding: 14px !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0 !important;
}

.group-table td {
    border: 1px solid #eee !important;
    padding: 12px !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    color: #334155 !important;
}

.group-table tr td:first-child {
    background-color: #1e293b !important;
    color: #f17014 !important;
    font-weight: bold !important;
    width: 120px !important;
    border-right: 3px solid #f17014 !important;
}

.group-table td span {
    font-size: 0.7rem;
    display: block;
    margin-top: 4px;
    color: #666;
    font-weight: normal;
}

/* 7. Subject Colour Categories */
.cat-comm    { background-color: #ffff00; }
.cat-math    { background-color: #c6e0b4; }
.cat-fluency { background-color: #8faadc; }
.cat-ai      { background-color: #e2efda; }
.cat-stack   { background-color: #ffe699; }
.cat-ct      { background-color: #fbe5d6; }