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

:root {
    --navy: #102d56;
    --blue: #214679;
    --green: #1aa064;
    --text: #17253a;
    --muted: #69768b;
    --line: #dce4ef;
    --bg: #f3f6fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    font: 15px/1.55 Inter, Arial, sans-serif;
    color: var(--text);
}

.page-shell {
    max-width: 850px;
    margin: 32px auto 65px;
    padding: 0 20px;
}

.page-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(21, 48, 88, 0.1);
    overflow: hidden;
}

.banner {
    display: block;
    width: 100%;
    height: auto;
}

.form-content {
    padding: 36px 56px 45px;
}

.section-kicker {
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 800;
    color: var(--green);
    text-transform: uppercase;
}

.form-content h1,
.admin-top h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 8px 0 10px;
    color: var(--navy);
}

.intro {
    color: var(--muted);
    margin: 0 0 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 9px;
}

    .field label span {
        color: #dc4d4d;
    }

.field input,
.table-toolbar input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 15px;
    background: #fbfcfe;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .field input:focus,
    .table-toolbar input:focus {
        border-color: #3f7db3;
        box-shadow: 0 0 0 3px rgba(63, 125, 179, 0.12);
    }

    .field input::placeholder {
        color: #a3adba;
    }

.validation {
    color: #bf3030;
    font-size: 12px;
    display: block;
    margin: 5px 0;
}

    .validation:empty {
        display: none;
    }

.privacy-choice {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 22px 0 18px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

    .privacy-choice input {
        margin: 4px 0 0;
        width: 18px;
        height: 18px;
        accent-color: var(--green);
        flex: none;
    }

    .privacy-choice label {
        font-size: 14px;
        color: #445267;
    }

.text-button {
    padding: 0;
    background: none;
    border: 0;
    color: #166caa;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.primary-button {
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 9px;
    padding: 14px 25px;
    font: 700 15px Inter, Arial;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

    .primary-button:hover {
        background: #118453;
    }

    .primary-button:disabled {
        opacity: 0.65;
        cursor: wait;
    }

.form-content .primary-button {
    width: 100%;
    margin-top: 14px;
}

.form-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 13px;
    text-align: center;
}

.footer {
    text-align: center;
    color: #98a3b2;
    padding: 0 15px 30px;
    font-size: 12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 24, 46, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .modal-overlay[hidden] {
        display: none;
    }

.modal-open {
    overflow: hidden;
}

.modal-dialog {
    width: min(100%, 760px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 13px;
    box-shadow: 0 20px 70px #0004;
}

.modal-top,
.modal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
}

    .modal-top h2 {
        font-size: 19px;
        margin: 0;
        color: var(--navy);
    }

.close-button {
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #596679;
}

.modal-text {
    padding: 22px 27px;
    overflow: auto;
    font-size: 14px;
    color: #3b4553;
}

    .modal-text h3 {
        font-size: 16px;
        margin: 23px 0 6px;
        color: var(--navy);
    }

    .modal-text p {
        margin: 0 0 15px;
    }

.modal-bottom {
    border-top: 1px solid var(--line);
    border-bottom: none;
    justify-content: flex-end;
}

.modal-ok {
    width: auto !important;
    margin: 0 !important;
}

.success-body {
    text-align: center;
    padding: 50px 30px 62px;
}

.success-icon {
    display: grid;
    place-items: center;
    margin: auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #e3f7ed;
    color: var(--green);
    font-size: 42px;
    font-weight: bold;
}

.success-body h1 {
    color: var(--navy);
    font-size: 31px;
}

.success-body p {
    color: var(--muted);
    font-size: 16px;
}

.success-info {
    font-weight: 600;
    line-height: 1.9;
}

.secondary-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 600;
}

.simple-card {
    padding: 45px;
}

.admin-login {
    width: min(100%, 470px);
    margin: 100px auto;
    padding: 40px;
}

.admin-login-header .brand {
    color: var(--green);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand span {
    color: #8091a8;
}

.admin-login-header h1 {
    font-size: 30px;
    color: var(--navy);
    margin-bottom: 0;
}

.admin-login-header p {
    color: var(--muted);
}

.admin-login-form {
    margin-top: 28px;
}

    .admin-login-form .primary-button {
        width: 100%;
        margin-top: 24px;
    }

.back-link {
    display: block;
    text-align: center;
    margin-top: 22px;
    color: var(--blue);
    text-decoration: none;
}

.admin-container {
    max-width: 1370px;
    margin: 45px auto;
    padding: 0 26px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
}

    .admin-top > div:first-child {
        text-align: left;
    }

    .admin-top form {
        margin-left: auto;
        flex-shrink: 0;
    }

    .admin-top p {
        color: var(--muted);
        margin: 0;
    }

.logout-button {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 17px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}

.admin-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 20px;
    gap: 20px;
}

    .admin-stats > div {
        background: white;
        box-shadow: 0 4px 18px #172e5012;
        padding: 22px 32px;
        min-width: 240px;
        border-radius: 12px;
    }

    .admin-stats span {
        color: var(--muted);
        font-size: 13px;
        display: block;
    }

    .admin-stats strong {
        font-size: 34px;
        color: var(--navy);
    }

.export-button {
    display: inline-block;
    padding: 13px 22px;
    background: var(--green);
    color: white;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
}

.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px #172e5012;
    overflow: hidden;
}

.table-toolbar {
    padding: 20px;
}

    .table-toolbar form {
        display: flex;
        gap: 10px;
        align-items: center;
        max-width: 650px;
    }

    .table-toolbar input {
        flex: 1;
    }

    .table-toolbar button {
        border: 0;
        background: var(--navy);
        color: white;
        padding: 13px 20px;
        border-radius: 8px;
        cursor: pointer;
    }

    .table-toolbar a {
        color: var(--blue);
    }

.table-scroll {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1100px;
    font-size: 13px;
}

th {
    color: #637389;
    font-size: 12px;
    text-align: left;
    background: #f6f8fb;
    padding: 14px 15px;
    white-space: nowrap;
}

td {
    padding: 15px;
    border-top: 1px solid #eef1f5;
    vertical-align: top;
}

    td strong {
        color: var(--navy);
    }

.empty-state {
    text-align: center;
    padding: 40px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

    .pagination a {
        color: var(--blue);
        margin-left: 15px;
        text-decoration: none;
        font-weight: 700;
    }

@media (max-width: 720px) {
    .page-shell {
        padding: 0 12px;
        margin: 14px auto 35px;
    }

    .form-content {
        padding: 25px 20px 30px;
    }

        .form-content h1 {
            font-size: 25px;
        }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .admin-login {
        margin: 45px auto;
        padding: 25px;
    }

    .admin-top,
    .admin-stats {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-container {
        padding: 0 12px;
        margin: 24px auto;
    }

    .admin-stats > div {
        width: 100%;
    }

    .modal-top,
    .modal-bottom {
        padding: 14px;
    }

    .modal-text {
        padding: 16px;
    }

    .modal-top h2 {
        font-size: 16px;
    }
}

.admin-entry-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .admin-link:hover {
        color: #173b70;
        border-color: #173b70;
        background: #f8fafc;
    }

/* Admin paneli üst bölüm hizalama */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

    .admin-header > div:first-child {
        text-align: left;
        margin-right: auto;
    }

    .admin-header h1 {
        margin: 8px 0;
        text-align: left;
    }

    .admin-header .logout-button {
        margin-left: auto;
        flex-shrink: 0;
    }

@media (max-width: 600px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }

        .admin-header .logout-button {
            margin-left: 0;
        }
}


.registration-number-box {
    background: #f3f7fc;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    padding: 22px;
    margin: 28px auto;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .registration-number-box span {
        color: #69768b;
        font-size: 14px;
    }

    .registration-number-box strong {
        color: #102d56;
        font-size: 30px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .registration-number-box small {
        color: #69768b;
        font-size: 12px;
    }


.back-to-site {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.back-to-site-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    background: #f3f7fc;
    color: #173b70;
    border: 1px solid #dce4ef;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .back-to-site-button:hover {
        background: #e6eef8;
        border-color: #173b70;
        color: #102d56;
        text-decoration: none;
    }

.yk-badge {
    display: inline-block;
    background: #e5f6eb;
    color: #16834a;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}