* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Version: 4.0.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #F5F7FA;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #ffffff;
    --text-secondary: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    /* Buton renkleri */
    --blue: #4285F4;
    --red: #EA4335;
    --yellow: #FBBC05;
    --green: #34A853;
    --purple: #9C27B0;
    --pink: #E91E63;
    --orange: #FF9800;
    --teal: #009688;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --card-bg: #1e1e1e;
        --text: #ffffff;
        --text-secondary: #aaaaaa;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    padding: 8px 0 0 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.button {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    height: 100px;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.button:hover::before {
    transform: translateX(0);
}

.button-content {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.button-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.button-description {
    font-size: 14px;
    opacity: 0.9;
}

.button i {
    font-size: 36px;
    margin-right: 20px;
    z-index: 1;
}

/* Buton renkleri */
.button:nth-child(1) {
    background: linear-gradient(135deg, var(--blue), #1a73e8);
}

.button:nth-child(2) {
    background: linear-gradient(135deg, var(--red), #d62516);
}

.button:nth-child(3) {
    background: linear-gradient(135deg, var(--green), #1e8e3e);
}

.button:nth-child(4) {
    background: linear-gradient(135deg, var(--purple), #7b1fa2);
}

.button:nth-child(5) {
    background: linear-gradient(135deg, var(--yellow), #f2a600);
}

.button:nth-child(6) {
    background: linear-gradient(135deg, var(--teal), #00796b);
}

.button:nth-child(8) {
    background: linear-gradient(135deg, var(--orange), #e65100);
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    border: none;
    color: var(--text-light);
    font-size: inherit;
    background: linear-gradient(135deg, var(--pink), #b31046);
    display: flex;
    align-items: center;
    height: 100px;
}

.dropdown-toggle::after {
    content: '';
    margin-left: auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 15px;
    z-index: 1;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 10;
    padding: 15px;
    display: none;
    overflow: hidden;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: var(--text);
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.dropdown-item i {
    color: var(--pink);
    font-size: 22px;
}

/* Mobil optimize edilmiş stiller */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .button, .dropdown-toggle {
        height: 90px;
        padding: 12px;
        border-radius: 12px;
    }
    .button i {
        font-size: 24px;
        margin-right: 12px;
    }
    .button-text {
        font-size: 14px;
    }
    .button-description {
        font-size: 12px;
    }
    /* Dropdown menü mobilde akışta ve tam genişlikte olsun */
    .dropdown-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-top: 10px;
        box-shadow: none;
        border-radius: 14px;
        padding: 10px;
        z-index: 1;
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

/* Küçük ekranlar için ekstra optimizasyon */
@media (max-width: 430px) {
    .container {
        padding: 8px;
    }
    .header {
        margin-bottom: 4px;
        padding: 4px 0 0 0;
    }
    .button-grid {
        gap: 8px;
    }
    .button, .dropdown-toggle {
        height: 85px;
        padding: 8px;
        border-radius: 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .button-content {
        gap: 2px;
        align-items: center;
        width: 100%;
    }
    .button-text {
        font-size: 12px;
        font-weight: 600;
    }
    .button-description {
        font-size: 10px;
    }
    .button i, .dropdown-toggle i {
        font-size: 20px;
        margin: 0 0 4px 0;
        min-width: unset;
    }
    .dropdown-menu {
        border-radius: 10px;
        padding: 8px;
    }
    .dropdown-item {
        padding: 8px;
        font-size: 12px;
        gap: 8px;
        border-radius: 8px;
    }
    .dropdown-item i {
        font-size: 14px;
    }
}

/* 360px ve altı için ekstra küçük ekran optimizasyonu */
@media (max-width: 360px) {
    .button-grid {
        gap: 6px;
    }
    .button, .dropdown-toggle {
        height: 80px;
        padding: 6px;
    }
    .button-text {
        font-size: 11px;
    }
    .button-description {
        font-size: 9px;
    }
    .button i, .dropdown-toggle i {
        font-size: 18px;
    }
}

/* Login ekranı stilleri */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #4285F4 0%, #E91E63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.7s;
}

.login-form {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 40px 28px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 90vw;
    gap: 18px;
    animation: popIn 0.7s;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.login-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px #e91e6340);
}

.login-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E91E63;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    margin-bottom: 8px;
    outline: none;
    transition: border 0.2s;
    background: #f7f7f7;
}

.login-form input[type="password"]:focus {
    border: 1.5px solid #E91E63;
    background: #fff;
}

.login-form button {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #4285F4 0%, #E91E63 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px #e91e6330;
    transition: background 0.2s, transform 0.2s;
    margin-top: 4px;
}

.login-form button:hover {
    background: linear-gradient(90deg, #E91E63 0%, #4285F4 100%);
    transform: translateY(-2px) scale(1.03);
}

.login-error {
    color: #e53935;
    font-size: 0.98rem;
    margin-top: 2px;
    min-height: 20px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 430px) {
    .login-form {
        min-width: 0;
        width: 95vw;
        padding: 28px 8px 24px 8px;
        gap: 12px;
    }
    .login-logo img {
        width: 60px;
        height: 60px;
    }
    .login-form h2 {
        font-size: 1.1rem;
    }
    .login-form input[type="password"] {
        font-size: 0.98rem;
        padding: 10px 12px;
    }
    .login-form button {
        font-size: 1rem;
        padding: 10px 0;
    }
} 