/* LKO Public Styles */

/* Common */
.lko-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.lko-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lko-btn-primary { background: #2271b1; color: #fff; }
.lko-btn-primary:hover { background: #135e96; color: #fff; }
.lko-btn-secondary { background: #f0f0f1; color: #2c3338; }
.lko-btn-secondary:hover { background: #dcdcde; color: #2c3338; }
.lko-btn-danger { background: #d63638; color: #fff; }
.lko-btn-danger:hover { background: #b32d2e; color: #fff; }
.lko-btn-block { display: block; width: 100%; margin-bottom: 8px; box-sizing: border-box; }
.lko-btn-sm { padding: 6px 14px; font-size: 13px; }
.lko-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Alerts */
.lko-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.lko-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.lko-alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.lko-alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.lko-alert-info { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

/* Badges */
.lko-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.lko-badge-default { background: #e0e0e0; color: #555; }
.lko-badge-success { background: #d4edda; color: #155724; }
.lko-badge-info { background: #cce5ff; color: #004085; }
.lko-badge-warning { background: #fff3cd; color: #856404; }
.lko-badge-danger { background: #f8d7da; color: #721c24; }

/* Forms */
.lko-form-group {
    margin-bottom: 16px;
    flex: 1;
}
.lko-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #2c3338;
}
.lko-form-group input[type="text"],
.lko-form-group input[type="email"],
.lko-form-group input[type="tel"],
.lko-form-group input[type="password"],
.lko-form-group input[type="number"],
.lko-form-group input[type="date"],
.lko-form-group input[type="datetime-local"],
.lko-form-group textarea,
.lko-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.lko-form-group input:focus,
.lko-form-group textarea:focus,
.lko-form-group select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.15);
}
.lko-form-group input[readonly] { background: #f9f9f9; color: #888; }
.lko-form-row {
    display: flex;
    gap: 16px;
}
@media (max-width: 600px) {
    .lko-form-row { flex-direction: column; gap: 0; }
}
.lko-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    cursor: pointer;
}
.lko-field-desc { font-size: 12px; color: #888; margin-top: 4px; }

/* Visitor Page */
.lko-visitor-page {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.lko-visitor-sidebar {
    width: 300px;
    flex-shrink: 0;
}
.lko-visitor-content {
    flex: 1;
    min-width: 0;
}
@media (max-width: 768px) {
    .lko-visitor-page { flex-direction: column; }
    .lko-visitor-sidebar { width: 100%; }
}
.lko-sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lko-sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #2c3338;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}
.lko-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.lko-info-row:last-child { border-bottom: none; }
.lko-info-label { font-size: 13px; color: #666; }
.lko-info-value { font-size: 13px; font-weight: 600; color: #2c3338; }

/* Register / Login */
.lko-register-wrapper,
.lko-login-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.lko-register-wrapper h2,
.lko-login-wrapper h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #2c3338;
}
.lko-register-wrapper h3 {
    font-size: 16px;
    color: #2271b1;
    margin: 20px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.lko-step { margin-top: 16px; }
.lko-login-links {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}
.lko-login-links a { color: #2271b1; text-decoration: none; }
.lko-login-links a:hover { text-decoration: underline; }

/* Parent Panel */
.lko-parent-panel {
    max-width: 1000px;
    margin: 0 auto;
}
.lko-panel-nav {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
}
.lko-panel-nav a {
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}
.lko-panel-nav a:hover { color: #2271b1; background: #f8f9fa; }
.lko-panel-nav a.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}
.lko-panel-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px;
}
.lko-panel-content h2 { margin: 0 0 20px; font-size: 20px; color: #2c3338; }

/* Student Cards */
.lko-student-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.lko-student-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}
.lko-student-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #2c3338;
}
.lko-student-info p {
    margin: 4px 0;
    font-size: 13px;
    color: #555;
}
.lko-student-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

/* Tables */
.lko-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.lko-table th,
.lko-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 13px;
}
.lko-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3338;
}
.lko-table tr:hover td { background: #f8f9fa; }

/* Loading */
.lko-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Popup Overlay */
.lko-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lko-popup-content {
    background: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}
.lko-popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
    line-height: 1;
}
.lko-popup-close:hover { color: #000; }

/* Alt bilgi metni — sayfa içi, eklenti shortcode sayfaları */
.lko-page-footer-text {
    margin-top: 28px;
    padding: 10px 16px;
    border-top: 1px solid #e2e4e7;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
}
.lko-page-footer-text p {
    margin: 0;
}

/* ── Kayıt Formu Step 3 Genel Genişlik ── */
.lko-register-wrapper {
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto;
}
.lko-reg-step3 {
    max-width: 900px;
}

/* ── Bölüm Kartları ── */
.lko-reg-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.lko-reg-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1B3A5C 0%, #2563A8 100%);
    color: #fff;
}
.lko-reg-section-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.lko-reg-section-icon {
    font-size: 18px;
    line-height: 1;
}
.lko-reg-section-body {
    padding: 20px;
}
.lko-reg-section-submit {
    background: #f8fafc;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.lko-reg-section-submit .lko-form-group {
    margin-bottom: 14px;
}

/* ── Aktar butonu yan yana ── */
.lko-input-with-action {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lko-input-with-action select {
    flex: 1;
}
.lko-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    background: #2563A8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.4;
}
.lko-btn-sm:hover { background: #1B3A5C; }

/* ── Velayet seçici ── */
.lko-reg-velayet {
    margin-top: 14px;
    padding: 12px 16px;
    background: #f0f6fc;
    border: 1px solid #c2d9f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.lko-reg-velayet-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d4a7a;
    white-space: nowrap;
}
.lko-reg-velayet-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.lko-reg-velayet-options label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ── Readonly field ── */
.lko-readonly-field {
    background: #f1f5f9 !important;
    color: #64748b;
}

/* ── Full width button ── */
.lko-btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Form row 3 sütun ── */
@media (min-width: 640px) {
    .lko-reg-section-body .lko-form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 14px;
    }
    .lko-reg-section-body .lko-form-row .lko-form-group {
        margin-bottom: 0;
    }
}

/* ── Asıl/Yedek Kayıt Listesi Shortcode ── */
.lko-liste-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}
.lko-liste-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.lko-liste-tablo th {
    background: #1B3A5C;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.lko-liste-tablo td {
    padding: 9px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.lko-liste-tablo tr:nth-child(even) td {
    background: #f8fafc;
}
.lko-liste-tablo tr:hover td {
    background: #eef4ff;
}
.lko-liste-tablo td:first-child {
    font-weight: 700;
    color: #2563A8;
    width: 60px;
    text-align: center;
}
.lko-liste-bos {
    color: #6b7280;
    font-style: italic;
    padding: 12px 0;
}
