﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* --- GENEL --- */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f6fbff, #eef5fb);
    min-height: 100vh;
}

    /* arka plan glow */
    body::before {
        content: "";
        position: fixed;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(46,163,242,0.12), transparent);
        top: -150px;
        left: -150px;
        animation: floatBg 10s infinite alternate ease-in-out;
        pointer-events: none;
    }

@keyframes floatBg {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(40px);
    }
}

/* --- FORM ANİMASYON --- */
.row {
    animation: smoothIn 0.7s ease;
}

@keyframes smoothIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- FIELDSET --- */
fieldset {
    border: 1px solid rgba(13,59,102,0.08);
    padding: 35px;
    border-radius: 22px;
    margin-bottom: 35px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 30px rgba(13,59,102,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
    transition: all 0.35s ease;
}

    /* glow border FIXED */
    fieldset::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 22px;
        padding: 1px;
        background: linear-gradient(120deg, transparent, #2ea3f2, transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: 0.4s;
        pointer-events: none; /* 🔥 CRITICAL FIX */
        z-index: 0;
    }

    fieldset:hover::before {
        opacity: 1;
    }

    fieldset:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 50px rgba(13,59,102,0.15);
    }

    /* içerikleri üste al */
    fieldset > * {
        position: relative;
        z-index: 2;
    }

/* --- LEGEND --- */
legend {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0b3c66;
    padding: 0 12px;
    letter-spacing: 0.5px;
}

    legend::after {
        content: "";
        display: block;
        height: 3px;
        width: 55px;
        margin-top: 8px;
        border-radius: 10px;
        background: linear-gradient(90deg, #0b3c66, #2ea3f2);
        box-shadow: 0 0 8px rgba(46,163,242,0.4);
        transition: 0.4s;
    }

fieldset:hover legend::after {
    width: 90px;
}

/* --- TABLE --- */
.AlseinTable {
    width: 100%;
    border-spacing: 0 14px;
}

    .AlseinTable td {
        padding: 10px;
        color: #2c3e50;
        font-size: 0.95rem;
    }

        .AlseinTable td:first-child {
            font-weight: 500;
            color: #0b3c66;
        }

/* --- INPUT --- */
.form-control {
    border-radius: 12px;
    border: 1px solid #d9e6f2;
    padding: 12px 15px;
    background: #f9fbfd;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
    z-index: 3;
}

    .form-control:hover {
        border-color: #bcd6ee;
    }

    .form-control:focus {
        border-color: #2ea3f2;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(46,163,242,0.15);
        outline: none;
    }

/* --- SELECT (DROPDOWN FIX) --- */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%230b3c66' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* --- ALERT --- */
.alert-warning {
    background: linear-gradient(135deg, #eaf4ff, #d8ebff);
    border: 1px solid rgba(46,163,242,0.2);
    color: #0b3c66;
    border-radius: 14px;
}

/* --- BUTTON --- */
.my-btn {
    background: linear-gradient(135deg, #0b3c66, #1e5f8f);
    color: white !important;
    padding: 14px 45px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(11,60,102,0.25);
}

    .my-btn::before {
        content: "";
        position: absolute;
        width: 200%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
        top: 0;
        left: -120%;
        transition: 0.6s;
    }

    .my-btn:hover::before {
        left: 120%;
    }

    .my-btn:hover {
        transform: translateY(-2px) scale(1.04);
        background: linear-gradient(135deg, #2ea3f2, #0b3c66);
        box-shadow: 0 15px 40px rgba(46,163,242,0.35);
    }

/* --- LOADING --- */
#loadingSpinner {
    color: #0b3c66;
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* --- YILDIZ --- */
span[style*="#DDA700"] {
    color: #2ea3f2 !important;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    fieldset {
        padding: 22px;
    }

    .AlseinTable tr,
    .AlseinTable td {
        display: block;
        width: 100%;
    }

        .AlseinTable td:first-child {
            margin-top: 12px;
        }
}
