
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html, body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

#div-dikey {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#div-ust {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    z-index: 100;
}

#div-ust img {
    position: absolute;
    top: -6px;
    left: -8px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#div-ust img:hover {
    transform: scale(1.05);
}

#pageTitle {
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    padding-right: 10px;
    text-align: end;
}

#div-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

/* Login Form Styles */
#div-login {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.titleLogin {
    color: #1e3c72;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.titleUsername {
    color: #555;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 20px;
    padding-left: 5px;
}

.transText {
    width: 100%;
    padding: 8px 16px;
    font-size: 1.2em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #333;
    outline: none;
    margin-bottom: 18px;
}

.transText:focus {
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.transText::placeholder {
    color: #aaa;
    font-size: 0.95em;
    opacity: 0.7;
}

.transText:focus::placeholder {
    opacity: 0.5;
}

#inputPassword {
    margin-bottom: 25px;
}

#btn_uyegiris {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

#btn_uyegiris:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

#btn_uyegiris:active {
    transform: translateY(0);
}

#errorLogin {
    margin-top: 20px;
    padding: 12px;
    color: #dc3545;
    font-size: 0.95em;
    text-align: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    min-height: 20px;
}

/* iframe Styles */
#iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

/* Menu Styles */
#div-menu {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    background: white;
    padding: 20px;
    overflow-y: auto;
}

#div-menu button {
    width: 100%;
    padding: 18px;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e3c72;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#div-menu button:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#div-menu button:active {
    transform: translateY(0);
}

/* Sorgu Styles */
#div-sorgu {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    display: none;
    background: white;
    padding: 20px;
    overflow-y: auto;
}

.select_label {
    display: block;
    color: #555;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}

#div-sorgu select {
    width: 100%;
    padding: 14px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #333;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#div-sorgu select:focus {
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

#divSorgula {
    margin-top: 25px;
}

#divSorgula button {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

#divSorgula button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

#divSorgula button:active {
    transform: translateY(0);
}

.divAra {
    height: 10px;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    #div-login {
        padding: 30px 30px;
        width: 90%;
    }

    .titleLogin {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .transText {
        padding: 12px 14px;
        font-size: 20px; /* iOS zoom engelleme */
    }

    #btn_uyegiris {
        padding: 14px;
        font-size: 1.2em;
    }

    #div-menu button,
    #divSorgula button {
        padding: 16px;
        font-size: 1.2em;
    }

    #pageTitle {
        font-size: 1.2em;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    #div-login {
        padding: 20px;
        top: 20px;
        transform: translate(-50%, 0);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .titleLogin {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .titleUsername {
        margin-top: 10px;
    }

    #pageTitle {
        font-size: 0.9em;
    }
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}