* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: whitesmoke;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.container {
    padding: 20px;
}

.header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-bottom: 1px solid grey;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    gap: 2px;
    height: 30px;
    cursor: pointer;
}

.logo-bar {
    width: 15px;
}

.bar1 { background: brown; }
.bar2 { background: orangered; }
.bar3 { background: orange; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    width: 24px;
    height: 24px;
    background: skyblue;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.btn {
    background: #0057D8;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid blue;
    border-radius: 4px;
    font-size: 14px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 12px;
    border: 1px solid darkgray;
    border-radius: 5px;
    background: white;
    appearance: none;
    font-size: 14px;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: darkgray;
    pointer-events: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.room-list {
    border: 1px solid gray;
    border-radius: 8px;
    overflow: hidden;
}

.room-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.room-item:last-child {
    border-bottom: none;
}

.room-item:hover {
    background: #f9f9f9;
}

.details-link {
    color: lightslategray;
    font-size: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.table th,
.table td {
    border: 1px solid black;
    padding: 10px;
    text-align: left;
}

.table th {
    background: white;
    font-weight: bold;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.nav-actions {
    position: sticky;
    top: 76px;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    border-top: 1px solid blue;
    display: flex;
    flex-wrap: wrap;
    z-index: 999;
}

.page-title {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    font-weight: bold;
}

.required {
    color: red;
}

.placeholder-content {
    text-align: center;
    padding: 40px;
    color: gray;
}

.help-icon {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.help-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.help-popup p {
    border: 1px solid gray;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

#options {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.room-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
}

.details-top {
    display: flex;
    justify-content: space-between; 
    margin-bottom: 15px;
}

#alert-btn {
    display: flex; 
    align-items: center; 
    gap: 10px;
    background: skyblue;
    border-radius: 4px;
    cursor: pointer;
}

.reset {
    background: #6c757d;
}

#no-match {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-arrow {
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.breadcrumb-end {
    background: lightgray;
    color: black;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;    
}

.sidebar {
    background-color: #f1b798;
    border-right: 1px solid #dee2e6;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 240px;
    overflow-y: auto;
    z-index: 2;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-item {
    display: flex;
    padding: 1px 2px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: #333;
}

.sidebar-item:hover {
    background-color: #e9ecef;
    border-left-color: #007bff;
    transform: translateX(5px);
}

.sidebar-item:active {
    background-color: #dee2e6;
}

.sidebar-icon {
    font-size: 1.2em;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-text {
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .container {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    
    .container.sidebar-open {
        margin-left: 250px;
    }

}