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

html{
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

body{
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #1083a9 0%, #ffffff 100%);
    background-repeat: no-repeat;
    z-index: -3;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    html{
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    body{
        overflow-y: visible;
    }
}

input, button, textarea, select{
    font-family: inherit;
}

.grid_png{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    background-image: url(../img/bg-grid.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bulut_img{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    object-fit: contain;
    transform: translateY(50px);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 992px) {
    .bulut_img{
        transform: translateY(0);
    }
}

.container{
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    flex: 0 0 auto;
    padding: 20px;
}

.slider_png{
    object-fit: contain;
    width: 100%;
    user-select: none;
    pointer-events: none;
}

.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.belge-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 12px;
    padding: 0 4px;
}

.belge-form__input{
    width: 100%;
    padding: 13px 14px;
    font-size: 1rem;
    line-height: 1.4;
    color: #0d3d4d;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 131, 169, 0.35);
    border-radius: 11px;
    transition: border-color 0.2s ease;
}

.belge-form__input::placeholder{
    color: rgba(13, 61, 77, 0.45);
}

.belge-form__input:hover{
    border-color: rgba(16, 131, 169, 0.55);
}

.belge-form__input:focus{
    outline: none;
}

.belge-form__input:focus-visible{
    border-color: #1083a9;
    outline: 2px solid rgba(16, 131, 169, 0.45);
    outline-offset: 2px;
}

.belge-form__submit{
    width: 100%;
    padding: 13px 18px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    cursor: pointer;
    background: #1083a9;
    border: 2px solid #0b6280;
    border-radius: 11px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.belge-form__submit:hover{
    background: #0d6f8f;
    border-color: #094e63;
}

.belge-form__submit:active{
    background: #0b5f7a;
    transform: translateY(1px);
    border-color: #084458;
}

.belge-form__submit:focus{
    outline: none;
}

.belge-form__submit:focus-visible{
    outline: 2px solid rgba(16, 131, 169, 0.55);
    outline-offset: 2px;
}

/* import.php */
body.import-page{
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    height: auto;
    align-items: flex-start;
    padding: 28px 16px 40px;
}

.import-panel{
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 11px;
    box-shadow: 0 2px 16px rgba(13, 61, 77, 0.12);
    border: 1px solid rgba(16, 131, 169, 0.22);
}

.import-panel__msg{
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d3d4d;
    margin-bottom: 12px;
}

.import-panel__msg--ok{
    color: #0d6f8f;
}

.import-panel__msg--error{
    color: #6b2020;
}

.import-panel__list{
    margin: 0 0 12px 1.1rem;
    padding: 0;
    font-size: 0.95rem;
    color: #0d3d4d;
    line-height: 1.55;
}

.import-panel__back{
    margin-top: 8px;
    font-size: 0.95rem;
}

.import-panel__back a{
    color: #0d6f8f;
    font-weight: 600;
}

.import-panel__back a:hover{
    text-decoration: underline;
}

/* Ana sayfa — belge AJAX, preloader, modal, sonuç */
/* flex/display kuralları HTML [hidden] özniteliğini ezmesin */
[hidden]{
    display: none !important;
}

body.belge-loading{
    cursor: wait;
}

.belge-stack{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 4px;
}

.belge-form--hidden{
    display: none !important;
}

.belge-preloader{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(13, 61, 77, 0.35);
    backdrop-filter: blur(2px);
}

.belge-preloader__spinner{
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: belge-spin 0.75s linear infinite;
}

@keyframes belge-spin{
    to{
        transform: rotate(360deg);
    }
}

.belge-preloader__text{
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.belge-modal{
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.belge-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(13, 29, 38, 0.55);
}

.belge-modal__box{
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 22px 20px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(13, 61, 77, 0.25);
    border: 1px solid rgba(16, 131, 169, 0.2);
}

.belge-modal__title{
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d3d4d;
    margin-bottom: 10px;
}

.belge-modal__message{
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(13, 61, 77, 0.92);
    margin-bottom: 18px;
}

.belge-modal__btn{
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: #1083a9;
    border: 2px solid #0b6280;
    border-radius: 11px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.belge-modal__btn:hover{
    background: #0d6f8f;
    border-color: #094e63;
}

.belge-modal__btn:focus{
    outline: none;
}

.belge-modal__btn:focus-visible{
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
}

.belge-result{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.belge-result__actions{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.belge-safari-hint{
    margin: 0;
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #0a5a73;
    background: rgba(16, 131, 169, 0.14);
    border-radius: 10px;
    border: 1px solid rgba(16, 131, 169, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(13, 111, 143, 0.08);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.65);
}

.belge-safari-hint strong{
    font-weight: 700;
    color: #084d63;
}

@media (max-width: 992px) {
    .belge-safari-hint{
        padding: 12px 14px;
        font-size: 0.88rem;
        background: rgba(16, 131, 169, 0.26);
        border-color: rgba(16, 131, 169, 0.38);
        -webkit-backdrop-filter: blur(16px) saturate(1.15);
        backdrop-filter: blur(16px) saturate(1.15);
        box-shadow: 0 3px 18px rgba(13, 111, 143, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.85);
    }
}

.belge-safari-hint[hidden]{
    display: none !important;
}

.belge-result__btn{
    width: 100%;
    padding: 13px 18px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    cursor: pointer;
    background: #1083a9;
    border: 2px solid #0b6280;
    border-radius: 11px;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.belge-result__btn:hover{
    background: #0d6f8f;
    border-color: #094e63;
}

.belge-result__btn--secondary{
    background: #169f72;
    color: #fff;
    border: 2px solid #0f7a56;
}

.belge-result__btn--secondary:hover{
    background: #138a63;
    border-color: #0c6849;
    color: #fff;
}

.belge-result__btn--new-query{
    margin-top: 4px;
    position: relative;
    z-index: 1;
    background-color: #404040;
    background-image: none;
    color: #fff;
    border: 2px solid #2a2a2a;
    border-radius: 11px;
    overflow: hidden;
    background-clip: padding-box;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.belge-result__btn--new-query:hover{
    background-color: #2a2a2a;
    background-image: none;
    border-color: #1a1a1a;
    color: #fff;
}

.belge-result__btn:focus{
    outline: none;
}

.belge-result__btn:focus-visible{
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}


.shapes{
    position: absolute;
    z-index: -1;
    user-select: none;
    pointer-events: none;
    --parallax-x: 0px;
    --parallax-y: 0px;
}

#shape-1{
    top: 50px;
    left: 100px;
    transform: translate(var(--parallax-x), var(--parallax-y));
}
#shape-2{ 
    bottom: 200px;
    left: 50px;
    transform: translate(var(--parallax-x), var(--parallax-y));
}
#shape-3{
    top: 50%;
    left: 250px;
    transform: translate(var(--parallax-x), var(--parallax-y)) translateY(-50%);
}
#shape-4{
    top: 45%;
    left: 420px;
    transform: translate(var(--parallax-x), var(--parallax-y)) translateY(-50%);
}
#shape-5{
    bottom: 0;
    left: 50%;
    transform: translate(var(--parallax-x), var(--parallax-y)) translateX(-50%);
}
#shape-6{
    right: 200px;
    top: 150px;
    transform: translate(var(--parallax-x), var(--parallax-y));
}
#shape-7{
    right: 150px;
    bottom: 350px;
    transform: translate(var(--parallax-x), var(--parallax-y));
}

/* Mobilde parallax kapalı (JS --parallax 0); konumlar viewport’a göre */
@media (max-width: 992px) {
    #shape-1{
        top: 52px;
        left: 10px;
        transform: translate(0, 0);
    }
    #shape-2{
        bottom: 96px;
        left: 8px;
        transform: translate(0, 0);
    }
    #shape-3{
        top: 13%;
        left: auto;
        right: 100px;
        transform: translate(0, -50%);
    }
    #shape-4{
        top: 17%;
        left: auto;
        right: 120px;
        transform: translate(0, -50%);
    }
    #shape-5{
        bottom: 6px;
        left: 50%;
        transform: translate(-50%, 0);
    }
    #shape-6{
        top: 10px;
        left: auto;
        right: 15px;
        transform: translate(0, 0);
    }
    #shape-7{
        bottom: 100px;
        left: auto;
        right: 12px;
        transform: translate(0, 0);
    }
}