﻿a.tab-box__item {
    text-decoration: none !important;
}

.input {
    font-size: 16px;
    margin: 6px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    background: #fff
}

.btn {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: #111;
    color: #fff
}

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed
    }

.table {
    border-collapse: collapse;
    width: 100%;
    background: #fff
}

    .table th, .table td {
        border: 1px solid #eee;
        padding: 10px;
        vertical-align: top
    }

.badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px
}

.badge-ok {
    background: #e6ffed;
    border: 1px solid #95d5a6
}

.badge-wait {
    background: #fff3cd;
    border: 1px solid #ffe69c
}

.name {
    white-space: nowrap
}

.toast {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px
}

    .toast .t {
        padding: 12px 14px;
        border-radius: 12px;
        color: #111;
        box-shadow: 0 4px 18px rgba(0,0,0,.08);
        background: #fff
    }

        .toast .t.ok {
            border: 1px solid #96e1a7;
            background: #e9fff0
        }

        .toast .t.err {
            border: 1px solid #ffc2c2;
            background: #ffecec
        }

.card {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff
}

.time {
    font-size: 12px;
    color: #666
}

.name {
    font-weight: 600;
    margin: 4px 0
}

.text {
    font-size: 18px
}

/* daha dengeli layout için */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.input-common,
.input-common_textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

    .input-common:focus,
    .input-common_textarea:focus {
        outline: none;
        border-color: #111;
        box-shadow: 0 0 0 4px rgba(17,17,17,.07);
    }

.button_secondary {
    background: #f3f4f6 !important;
    color: #111 !important;
}
/* Toast container merkezde, scroll'dan bağımsız */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex !important; /* başka bir kural "display:none" verdiyse ez */
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

    .toast .t {
        padding: 14px 18px;
        border-radius: 12px;
        color: #111;
        box-shadow: 0 6px 24px rgba(0,0,0,.12);
        background: #fff;
        font-size: 15px;
        font-weight: 500;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .3s ease, transform .3s ease;
    }

        .toast .t.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast .t.ok {
            border: 1px solid #a9e3b3;
            background: #ebfff0;
        }

        .toast .t.err {
            border: 1px solid #f6bcbc;
            background: #fff0f0;
        }

/* --- Fullscreen Loading Overlay --- */
.loading {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,17,17,.35);
    backdrop-filter: blur(2px);
}

    .loading.hidden {
        display: none !important;
    }

.loading__box {
    min-width: 180px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    color: #111;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.loading__spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #111;
    border-top-color: transparent;
    margin: 0 auto 10px auto;
    animation: spin .8s linear infinite;
}

.loading__text {
    font-size: 14px;
    font-weight: 600;
}

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


/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 10px
}

    .toolbar .toolbar__right {
        margin-right: 1%
    }

.btn {
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    cursor: pointer
}

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed
    }

.btn-tab {
    background: #f3f4f6;
    color: #111;
    margin-right: 6px
}

    .btn-tab.is-active {
        background: #111;
        color: #fff
    }

/* Tablo */
.table-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%
}

    .table thead th {
        position: sticky;
        top: 0;
        background: #fafafa;
        border-bottom: 1px solid #eee;
        padding: 10px;
        text-align: left;
        z-index: 1
    }

    .table td {
        border-bottom: 1px solid #f1f1f1;
        padding: 10px;
        vertical-align: top
    }

    .table tr:hover td {
        background: #fcfcfc
    }

/* Hücre içerikleri */
.cell-name {
    white-space: nowrap
}

.cell-text {
    max-width: 720px;
    overflow: hidden;
    text-overflow: ellipsis
}

@media (max-width: 900px) {
    .cell-text {
        max-width: 480px
    }
}

@media (max-width: 640px) {
    .cell-text {
        max-width: 280px
    }
}

/* Durum rozetleri */
.badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-block;
    color: #111 !important
}

.badge-ok {
    background: #dcfce7;
    border: 1px solid #16a34a
}

.badge-wait {
    background: #fef9c3;
    border: 1px solid #ca8a04
}

.badge-rev {
    background: #fee2e2;
    border: 1px solid #dc2626
}

.badge-ok.answered,
.badge-answered {
    background: #2563eb !important; /* blue-600 */
    border: 1px solid #1e40af !important;
    color: #fff !important;
}

tr[data-answered="true"] td {
    background: #eff6ff; /* light blue background */
}

/* unapproved state göstermek istersek */

/* Aksiyon butonları */
.btn-xxs {
    padding: 6px 10px;
    border-radius: 9px;
    margin-right: 6px
}

.btn-danger {
    background: #b00020
}

/* --- Confirm Modal --- */
.confirm {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center
}

    .confirm.hidden {
        display: none !important
    }

.confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,.45);
    backdrop-filter: blur(2px)
}

.confirm__box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    width: 90%;
    max-width: 420px;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.confirm__title {
    font-weight: 700;
    font-size: 18px;
    color: #111
}

.confirm__msg {
    color: #333;
    line-height: 1.4
}

.confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px
}

.btn-light {
    background: #f3f4f6;
    color: #111;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px
}


/* --- Speaker Page --- */
.speaker-title {
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #111;
}

.speaker-questions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qcard {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    transition: all 0.3s ease;
}

    .qcard:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    }

.qcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qcard-name {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.qcard-time {
    font-size: 13px;
    color: #666;
}

.qcard-body {
    font-size: 15px;
    color: #111;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* "no questions" mesajı */
.no-questions {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 16px;
}

.qcard.answered {
    border: 1px solid #b6e6c7;
    background: #e9fbe9;
    opacity: 0.95;
}

    .qcard.answered .badge-answered {
        background: #16a34a;
        color: #fff;
        border-radius: 8px;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 600;
    }

