/* ====================================================
   YOKLAMA SISTEMI — Kurumsal sayfa stilleri
==================================================== */

/* Tab navigasyonu */
.yk-tab-nav {
    display: flex;
    gap: 8px;
    max-width: 820px;
    margin: 0 auto 16px;
}

.yk-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #c4cedd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #e8ecf2;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.yk-tab-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.yk-tab-btn:hover {
    background: #dce3ee;
    color: #0088a4;
}

.yk-tab-btn.active {
    background: #ffffff;
    color: #0088a4;
    border-color: #0088a4;
    border-bottom: 2px solid #ffffff;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
}

.yk-tab-panel {
    display: none;
}

.yk-tab-panel.active {
    display: block;
}

/* QR info kartı */
.qr-info-card {
    border: 1px solid #d8e3ec;
    border-radius: 6px;
    background: #f6fafc;
    padding: 18px 20px;
    position: relative;
}

.qr-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.qr-role-ogretmen {
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #a4c0f4;
}

.qr-role-ogrenci {
    background: #fef3e2;
    color: #b45309;
    border: 1px solid #fcd19c;
}

.qr-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.qr-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qr-info-label {
    font-size: 11px;
    font-weight: 700;
    color: #607386;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qr-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #12344d;
}

/* QR durum mesajları */
.qr-durum-bilgi {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
}

.qr-durum-bilgi svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.qr-durum-giris {
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #a4c0f4;
}

.qr-durum-tamam {
    background: #eaf5ec;
    color: #145226;
    border: 1px solid #b8ddc0;
}

/* QR yükleme alanı */
.qr-loading-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    gap: 12px;
}

.qr-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #dce3ee;
    border-top-color: #0088a4;
    border-radius: 50%;
    animation: qrSpin 0.8s linear infinite;
}

@keyframes qrSpin {
    to { transform: rotate(360deg); }
}

.qr-loading-text {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
}

.yk-wrapper {
    min-height: 100vh;
    background: #edf0f4;
    padding: 40px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Ana kart */
.yk-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}

/* Kart basligi */
.yk-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #0088a4;
    color: #fff;
    padding: 28px 36px;
    border-bottom: 3px solid #006d83;
}

.yk-header-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yk-header-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.yk-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #ffffff;
    letter-spacing: 0.1px;
}

.yk-subtitle {
    font-size: 13px;
    margin: 0;
    color: #b8d0ef;
    line-height: 1.5;
}

/* Adim gostergesi */
.yk-stepper {
    display: flex;
    align-items: center;
    padding: 20px 36px;
    background: #f6f8fb;
    border-bottom: 1px solid #dde3ec;
    gap: 0;
}

.yk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.yk-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #c4cedd;
    background: #fff;
    color: #9aaabb;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.yk-step.active .yk-step-circle {
    background: #0088a4;
    border-color: #0088a4;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 136, 164, 0.3);
}

.yk-step.done .yk-step-circle {
    background: #1a6e30;
    border-color: #1a6e30;
    color: #fff;
}

.yk-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #9aaabb;
    white-space: nowrap;
    transition: color 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.yk-step.active .yk-step-label {
    color: #0088a4;
}

.yk-step.done .yk-step-label {
    color: #1a6e30;
}

.yk-step-line {
    flex: 1;
    height: 1px;
    background: #d0d9e6;
    margin: 0 10px;
    margin-bottom: 20px;
    transition: background 0.25s;
}

.yk-step-line.done {
    background: #1a6e30;
}

/* Adim icerik alani */
.yk-flow-step {
    display: none;
}

.yk-flow-step.active {
    display: block;
}

.yk-step-body {
    padding: 28px 36px 32px;
}

.yk-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0a2040;
    margin: 0 0 5px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8ecf2;
}

.yk-step-num {
    width: 26px;
    height: 26px;
    background: #0088a4;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yk-step-desc {
    font-size: 13.5px;
    color: #4a5568;
    margin: 10px 0 0;
    line-height: 1.6;
    background: #f6f8fb;
    border-left: 3px solid #0088a4;
    padding: 9px 14px;
    border-radius: 0 5px 5px 0;
}

.yk-form-stack {
    width: 100%;
    max-width: 100%;
}

.yk-form-item + .yk-form-item {
    margin-top: 14px;
}

.yk-form-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
}

.yk-row-label {
    margin: 11px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: #667688;
    text-transform: none;
    letter-spacing: 0;
}

.yk-form-holder {
    width: 100%;
}

.yk-form-holder-sms {
    max-width: 320px;
}

/* Form etiket ve inputlar */
.yk-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #2d3d52;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.yk-input-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.55;
}

.yk-input {
    border: 1px solid #c0d7df !important;
    border-radius: 5px !important;
    height: 46px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #1a2a3a !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #e9f4f7 !important;
}

.yk-help-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #7a8698;
    font-style: italic;
}

.yk-input:focus {
    border-color: #0088a4 !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 164, 0.15) !important;
    outline: none !important;
}

.yk-code-input {
    font-size: 18px !important;
    letter-spacing: 6px !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: #006d83 !important;
}

/* Aksiyon butonlari */
.yk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf2;
}

.yk-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    min-width: 170px;
    justify-content: center;
}

.yk-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.yk-btn-primary {
    background: #0088a4;
    color: #fff;
    border: 1px solid #006d83;
}

.yk-btn-primary:hover {
    background: #006d83;
    box-shadow: 0 4px 12px rgba(0, 136, 164, 0.3);
}

.yk-btn-success {
    background: #1a6e30;
    color: #fff;
    border: 1px solid #145426;
}

.yk-btn-success:hover {
    background: #145426;
    box-shadow: 0 4px 12px rgba(26, 110, 48, 0.3);
}

.yk-btn-ghost {
    background: #fff;
    color: #3a4e65;
    border: 1.5px solid #c4cedd;
}

.yk-btn-ghost:hover {
    background: #f0f4fa;
    color: #0088a4;
    border-color: #0088a4;
}

.yk-actions-between {
    align-items: center;
    justify-content: space-between;
}

.yk-filter-panel {
    padding: 16px 18px;
    border: 1px solid #dce7ef;
    border-radius: 6px;
    background: #f9fcfe;
}

.yk-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.yk-filter-item {
    min-width: 0;
}

.yk-schedule-panel {
    border: 1px solid #d8e3ec;
    border-radius: 6px;
    background: #f6fafc;
    padding: 14px 16px;
}

.yk-schedule-title {
    font-size: 13px;
    font-weight: 700;
    color: #12344d;
    margin-bottom: 6px;
}

.yk-schedule-range {
    font-size: 13px;
    color: #3f556b;
    margin-bottom: 10px;
}

.yk-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.yk-schedule-item {
    border: 1px solid #e1e9f1;
    border-radius: 5px;
    background: #ffffff;
    padding: 8px 10px;
}

.yk-schedule-day {
    font-size: 12px;
    font-weight: 700;
    color: #16445f;
}

.yk-schedule-hours {
    font-size: 13px;
    font-weight: 600;
    color: #1f2d3d;
    margin-top: 2px;
}

.yk-schedule-slice {
    font-size: 11.5px;
    color: #607386;
    margin-top: 2px;
}

.yk-filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #476175;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.yk-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.yk-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    min-width: auto;
}

.yk-select {
    width: 100%;
    appearance: auto;
    cursor: pointer;
}

/* Yoklama tablosu */
.yk-table-wrap {
    border: 1px solid #d8e0eb;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 16px;
}

.yk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.yk-table thead tr {
    background: #0088a4;
    color: #fff;
}

.yk-table thead th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
}

.yk-th-num     { width: 52px; text-align: center; }
.yk-th-actions { width: 120px; text-align: center; }
.yk-th-status  { width: 110px; text-align: center; }

.yk-table tbody tr {
    border-bottom: 1px solid #eaeef5;
    transition: background 0.12s;
}

.yk-table tbody tr:last-child {
    border-bottom: none;
}

.yk-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.yk-table tbody tr:hover {
    background: #eef3fb;
}

.yk-table tbody td {
    padding: 12px 16px;
    color: #2c3e56;
    vertical-align: middle;
}

.yk-table tbody td:first-child {
    text-align: center;
    color: #8a9bb0;
    font-weight: 700;
    font-size: 12px;
}

/* Tablodaki islem butonlari — sabit genislik, kaymaz */
.yk-action-cell {
    text-align: center;
    white-space: nowrap;
}

.yk-tbl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.18s;
    flex-shrink: 0;
}

.yk-tbl-btn + .yk-tbl-btn {
    margin-left: 6px;
}

.yk-tbl-btn-geldi {
    background: #eaf5ec;
    color: #1a6e30;
    border-color: #b8ddc0;
}

.yk-tbl-btn-geldi:hover,
.yk-tbl-btn-geldi.active {
    background: #1a6e30;
    color: #fff;
    border-color: #1a6e30;
    box-shadow: 0 2px 8px rgba(26,110,48,0.3);
}

.yk-tbl-btn-gelmedi {
    background: #fdf0ef;
    color: #b52a20;
    border-color: #f0bcb9;
}

.yk-tbl-btn-gelmedi:hover,
.yk-tbl-btn-gelmedi.active {
    background: #b52a20;
    color: #fff;
    border-color: #b52a20;
    box-shadow: 0 2px 8px rgba(181,42,32,0.3);
}

/* Durum etiketi */
.yk-status-cell {
    text-align: center;
}

.yk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.yk-badge-geldi    { background: #eaf5ec; color: #1a6e30; border: 1px solid #b8ddc0; }
.yk-badge-gelmedi  { background: #fdf0ef; color: #b52a20; border: 1px solid #f0bcb9; }
.yk-badge-bekliyor { background: #f2f4f7; color: #627690; border: 1px solid #d0d9e6; }

/* Bildirim kutusu */
.yk-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 36px 28px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
}

.yk-alert.success {
    background: #eaf5ec;
    color: #145226;
    border: 1px solid #b8ddc0;
    border-left: 4px solid #1a6e30;
}

.yk-alert.danger {
    background: #fdf0ef;
    color: #7a1c14;
    border: 1px solid #f0bcb9;
    border-left: 4px solid #b52a20;
}

.yk-alert.warning {
    background: #fffbec;
    color: #6b4c00;
    border: 1px solid #f5d87a;
    border-left: 4px solid #d4a017;
}

/* Responsive */
@media (max-width: 600px) {
    .yk-header       { padding: 20px 18px; }
    .yk-stepper      { padding: 16px 18px; }
    .yk-step-body    { padding: 20px 18px 24px; }
    .yk-alert        { margin: 0 18px 20px; }
    .yk-step-label   { display: none; }
    .yk-form-row     { grid-template-columns: 1fr; row-gap: 6px; }
    .yk-row-label    { margin-top: 0; font-size: 14px; }
    .yk-form-holder-sms { max-width: 100%; }
    .yk-filter-grid  { grid-template-columns: 1fr; }
    .yk-schedule-grid { grid-template-columns: 1fr; }
    .yk-actions-between { align-items: stretch; }
    .yk-btn          { min-width: 100%; }
    .yk-tab-nav      { flex-direction: column; gap: 4px; }
    .yk-tab-btn      { border-radius: 6px; border-bottom: 2px solid #c4cedd; }
    .yk-tab-btn.active { border-bottom-color: #0088a4; margin-bottom: 0; }
    .qr-info-grid    { grid-template-columns: 1fr; }
}
