@import url('https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
    background-image: url('/image/Başlıksız-10.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment: scroll;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.content {
    flex: 1;
    display: grid;
    align-items: flex-start;
    justify-content: space-around;
}

.login-btn {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.content,
.sidebar,
.navbar {
    overflow-x: hidden;
}

.button {
    font-family: 'Fuzzy Bubbles', cursive, Arial, sans-serif;
    width: 100%;
    max-width: 400px;
    padding: 15px 30px;
    margin-top: 100px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1 1 30%;
    min-width: 250px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s;
}

.button.student {
    background: linear-gradient(135deg, #fbbd4c 0%, #f9a825 100%);
}

.button.student:hover {
    background: linear-gradient(135deg, #f9a825 0%, #f57c00 100%);
    box-shadow: 0 8px 25px rgba(251, 189, 76, 0.4);
}

.button.teacher {
    background: linear-gradient(135deg, #63ac8a 0%, #54af58 100%);
}

.button.teacher:hover {
    background: linear-gradient(135deg, #58d65e 0%, #66bb6a 100%);
    box-shadow: 0 8px 25px rgba(150, 206, 180, 0.4);
}

.button.parent {
    background: linear-gradient(135deg, #f3a9b0 0%, #f48fb1 100%);
    color: #333;
}

.button.parent:hover {
    background: linear-gradient(135deg, #f48fb1 0%, #c54e76 100%);
    box-shadow: 0 8px 25px rgba(243, 169, 176, 0.4);
    color: white;
}

.title-content {
    margin-top: 15px;
    display: grid;
}

.title-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    background: rgba(255, 255, 255, 0.178);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: hidden;

}

.navbar img {
    height: 60px;
    width: 60px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.navbar img:hover {
    transform: scale(1.05);
}

.navbar .menu-desktop {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #aaeaf9 0%, #96ceb4 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 30px 25px;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.active {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

.sidebar ul {
    list-style: none;
    padding: 5px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar ul li {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Fuzzy Bubbles', cursive, Arial, sans-serif;
    color: #ffffff;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(13, 153, 172, 0.233);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(5px);
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-sidebar {
    font-size: 30px;
    cursor: pointer;
    display: block;
    text-align: right;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 126, 143, 0.322);
    margin-left: auto;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.bottom-content {
    padding: 20px 0;
    text-align: center;
}

.navbar .bx-menu {
    color: #2A6873;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(18, 127, 134, 0.219);
}

.navbar .bx-menu:hover {
    background: rgba(7, 104, 75, 0.171);

    transform: scale(1.1);
    color: #2A6873;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */

/* Surface Pro 7 özel ayarları */
@media(min-width: 900px) and (max-width: 1300px) {
    body {
        background-image: url('/image/Başlıksız-11.svg');
        background-size: cover;

        background-position: center bottom;

        background-attachment: scroll;
        background-repeat: no-repeat;
    }
}

/* Nest Hub Max özel ayarları - 1280x800 */
@media screen and (min-width: 1280px) and (max-height: 800px) {
    body {
        background-image: url('/image/Başlıksız-10.svg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }
}

/* Nest Hub özel ayarları - 1024x600 */
@media screen and (min-width: 1024px) and (max-width: 1279px) and (max-height: 700px) {
    body {
        background-image: url('/image/Başlıksız-10.svg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }
}

/* Büyük ekranlar için */
@media(min-width: 1301px) and (min-height: 801px) {
    body {
        background-image: url('/image/Başlıksız-10.svg');
        background-size: cover;
        background-position: 50% 50%;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
}

@media(max-width:872px) {
    .login-btn {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .button {
        max-width: 350px;
        min-width: 280px;
        padding: 12px 25px;
        font-size: 18px;
        margin: 5px;
    }

    .buttonsdiv {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 50px;
    }

    .sidebar {
        width: 280px;
        right: -280px;
    }

    .navbar {
        padding: 10px 20px;
    }

    .navbar img {
        height: 60px;
        width: 60px;
    }

    .sidebar ul li {
        font-size: 15px;
        padding: 12px 15px;
        font-family: 'Fuzzy Bubbles', cursive, Arial, sans-serif;
    }

    .close-sidebar {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
}

/* Orta boy ekranlar - Tablet/Laptop */
@media(min-width: 769px) and (max-width: 1280px) {


    .sidebar {
        width: 300px;
        right: -300px;
    }

    .navbar {
        padding: 12px 25px;
    }

    .navbar img {
        height: 70px;
        width: 70px;
    }

    .sidebar ul li {
        font-size: 15px;
        padding: 13px 18px;
        font-family: 'Fuzzy Bubbles', cursive, Arial, sans-serif;
    }
}



/* Mobil ekranlar */
@media(max-width: 900px) {
    body {
        background-image: url('/image/Başlıksız-5.svg');
        background-size: cover;
        background-position: 50% 50%;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
}

@media(max-width: 480px) {
    .sidebar {
        width: 300px;
        right: -300px;
    }

    .navbar {
        padding: 5px 15px;
    }

    .navbar img {
        height: 50px;
        width: 50px;
    }

    .button {
        font-size: 17px;
        padding: 12px 20px;
        margin: 8px 5px;
        max-width: 320px;
        min-width: 250px;
        border-radius: 20px;
    }

    .close-sidebar {
        font-size: 22px;
        width: 35px;
        height: 35px;
    }

    .sidebar ul li {
        font-size: 16px;
        padding: 12px 15px;
        font-family: 'Fuzzy Bubbles', cursive, Arial, sans-serif;
        font-weight: 500;
    }
}

/* Çok küçük telefon ekranları */
@media(max-width: 360px) {
    .sidebar {
        width: 280px;
        right: -280px;
    }

    .button {
        font-size: 16px;
        padding: 10px 18px;
        margin: 6px 3px;
        max-width: 280px;
        min-width: 220px;
        border-radius: 18px;
    }

    .sidebar ul li {
        font-size: 15px;
        padding: 10px 12px;
    }
}