.class-box {
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2),
                -5px -5px 15px rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
}

.class-box:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.25),
                -8px -8px 20px rgba(255,255,255,0.7);
    background: linear-gradient(145deg, #d0d0d0, #b0b0b0);
    color: #000000;
}

.class-box:active {
    transform: translateY(0);
    box-shadow: inset 5px 5px 15px rgba(0,0,0,0.2),
                inset -5px -5px 15px rgba(255,255,255,0.6);
}

.header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #f8f9fa;
}

.opetaja-box {
    font-size: 1.2rem;
    background: linear-gradient(145deg, #e8f4f8, #d1e9f6);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
                -5px -5px 15px rgba(255,255,255,0.8);
    min-height: 100px;
    padding: 15px;
}

.room-box {
    font-size: 1.4rem;
    background: linear-gradient(145deg, #f0f7ff, #e6f0ff);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
                -5px -5px 15px rgba(255,255,255,0.8);
    min-height: 100px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-code {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.room-name {
    font-size: 1.2em;
    color: #444;
    line-height: 1.2;
}

.view-toggle {
    margin: 20px 0;
}

#teacherView, #roomView {
    display: none;
}

.gap-2 {
    gap: 0.5rem !important;
}

.btn-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-group .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 6px !important;
    margin: 0 2px;
}

.btn-group .btn i {
    margin-right: 4px;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-group .btn.active {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .col-3:last-child {
        margin-top: 1rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        flex: 1 1 calc(33.333% - 4px);
        margin: 2px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .btn-group .btn i {
        margin-right: 2px;
    }
}

@media (max-width: 576px) {
    .btn-group .btn {
        flex: 1 1 calc(50% - 4px);
        font-size: 0.75rem;
        padding: 5px 6px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-md-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .teacher-box, .room-box {
        font-size: 1.1rem;
        min-height: 100px;
        padding: 12px;
    }
}

@media (min-width: 992px) {
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    .teacher-box, .room-box {
        font-size: 1.2rem;
        min-height: 120px;
        padding: 15px;
    }
}

.container {
    max-width: 1800px;
    padding: 0 10px;
}

.class-box {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#kell {
    margin: 20px auto;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    transform: scale(0.8);
    transform-origin: top;
}

#kuupaev-kell {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
}

#lessonSelect, #daySelect {
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 300px;
    width: 300px;
    height: 3.5rem;
}

#lessonSelect option, #daySelect option {
    font-size: 1.2rem;
    padding: 10px;
    background: #ffffff;
}

#lessonSelect:hover, #daySelect:hover {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    transform: translateY(-2px);
}

#lessonSelect:focus, #daySelect:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
}

@media (max-width: 768px) {
    #kell {
        padding: 10px;
    }
    #kuupaev-kell {
        font-size: 2rem;
    }
    #lessonSelect, #daySelect {
        font-size: 1.1rem;
        height: 3rem;
        min-width: 250px;
        width: 250px;
    }
    .selector-group select {
        min-width: 250px;
        width: 250px;
    }
    #lessonSelect option, #daySelect option {
        font-size: 1.1rem;
    }
}

.selector-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.selector-group select {
    min-width: 300px;
    width: 300px;
    display: inline-block;
}
.selector-group label {
    margin-bottom: 0;
    font-size: 1.2rem;
    display: inline-block;
}
.selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}
.login-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
.btn-microsoft {
    background-color: #2F2F2F;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-microsoft:hover {
    background-color: #1F1F1F;
    color: white;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #0078d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 767px) {
    .teacher-box, .room-box {
        font-size: 1rem;
        min-height: 90px;
        padding: 10px;
    }
}
 