/* ========================================
   SWL E-Takvim - Professional Calendar Styles
   Color Scheme: #F7941D (orange), #333 (dark), #fff (white)
   ======================================== */

/* === CALENDAR NAVIGATION === */
.swl-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    border-bottom: none;
    flex-wrap: wrap;
}

.swl-nav-left, .swl-nav-right { display: flex; align-items: center; gap: 6px; }
.swl-nav-center { display: flex; align-items: center; gap: 8px; }

.swl-nav-btn {
    background: #F7941D; color: #fff; border: none; border-radius: 6px;
    padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.swl-nav-btn:hover { background: #e5850f; }
.swl-nav-today { background: #333; }
.swl-nav-today:hover { background: #555; }

.swl-nav-select {
    padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #333; cursor: pointer;
    background: #fff; min-width: 120px;
}
.swl-nav-select:focus { border-color: #F7941D; outline: none; box-shadow: 0 0 0 3px rgba(247,148,29,0.15); }

.swl-view-btn {
    background: #f0f0f0; color: #333; border: none; border-radius: 6px;
    padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.swl-view-btn:hover { background: #e0e0e0; }
.swl-view-btn.active { background: #F7941D; color: #fff; }

.swl-print-btn { background: #555; font-size: 16px; }
.swl-print-btn:hover { background: #333; }

/* Event detail modal */
.swl-em-content {
    position: relative; background: #fff; border-radius: 12px;
    width: 90%; max-width: 420px; padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.swl-em-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none;
    font-size: 28px; color: #999; cursor: pointer; line-height: 1;
}
.swl-em-close:hover { color: #333; }
.swl-em-title { font-size: 18px; font-weight: 700; color: #333; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 2px solid #F7941D; }
.swl-em-row { padding: 6px 0; font-size: 14px; color: #555; }
.swl-em-row strong { color: #333; min-width: 100px; display: inline-block; }
.swl-em-actions { display: flex; gap: 10px; margin-top: 20px; }
.swl-em-actions .swl-btn-kayit { flex: 1; text-align: center; font-size: 14px; padding: 10px; }
.swl-em-actions .swl-btn-ics { flex: 1; text-align: center; font-size: 13px; padding: 10px; }
.swl-em-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }

/* Kontenjan dolu */
.swl-btn-dolu { background: #ccc !important; cursor: not-allowed; pointer-events: none; text-align: center; }

@media print {
    .swl-etakvim-filters, .swl-calendar-nav, .swl-nav-right { display: none !important; }
    #swl-etakvim-calendar { box-shadow: none !important; border: none !important; }
}

/* === CALENDAR WRAPPER === */
.swl-etakvim-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === FILTERS === */
.swl-etakvim-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.swl-filter-group {
    flex: 1;
}

.swl-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swl-filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    appearance: auto;
}

.swl-filter-group select:focus {
    border-color: #F7941D;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
    outline: none;
}

/* === CALENDAR === */
#swl-etakvim-calendar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    padding: 20px;
    position: relative;
}

#swl-etakvim-calendar.swl-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    border-radius: 10px;
}

/* FullCalendar overrides */
.fc .fc-toolbar-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.fc .fc-button-primary {
    background-color: #F7941D !important;
    border-color: #F7941D !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s !important;
}

.fc .fc-button-primary:hover {
    background-color: #e5850f !important;
    border-color: #e5850f !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: #d47a0d !important;
    border-color: #d47a0d !important;
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.3) !important;
}

.fc .fc-today-button {
    background-color: #333 !important;
    border-color: #333 !important;
}

.fc .fc-today-button:hover {
    background-color: #555 !important;
    border-color: #555 !important;
}

.fc .fc-col-header-cell {
    background: #F7941D;
    color: #fff;
    padding: 10px 0 !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.fc .fc-col-header-cell-cushion {
    color: #fff !important;
    text-decoration: none !important;
}

.fc .fc-daygrid-day-number {
    color: #333 !important;
    font-weight: 500 !important;
    padding: 8px !important;
    text-decoration: none !important;
}

.fc .fc-day-today {
    background: rgba(247, 148, 29, 0.08) !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 90px;
}

.fc .fc-daygrid-event {
    border-radius: 4px !important;
    margin: 1px 4px !important;
    font-size: 12px !important;
}

.fc .fc-event {
    border: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* List view */
.fc .fc-list-event-title a {
    color: #333 !important;
    font-weight: 500 !important;
}

.fc .fc-list-day-cushion {
    background: #F7941D !important;
    color: #fff !important;
}

.fc .fc-list-event:hover td {
    background: rgba(247, 148, 29, 0.08) !important;
}

/* === TRAINING DETAIL PAGE === */
.swl-egitim-detay-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.swl-detay-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #F7941D;
}

.swl-detay-content {
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.swl-detay-content h2,
.swl-detay-content h3 {
    color: #333;
    margin-top: 25px;
}

/* Sidebar info card */
.swl-info-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 20px;
}

.swl-info-card h3 {
    background: #333;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.swl-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.swl-info-row:last-of-type {
    border-bottom: none;
}

.swl-info-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.swl-info-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

.swl-btn-kayit {
    display: block;
    background: #F7941D;
    color: #fff !important;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.3s;
    letter-spacing: 0.5px;
    margin: 15px 20px 20px;
    border-radius: 8px;
}

.swl-btn-kayit:hover {
    background: #e5850f;
    color: #fff !important;
}

/* Other dates */
.swl-other-dates h3 {
    background: #555;
}

.swl-other-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.swl-other-date-row:hover {
    background: rgba(247, 148, 29, 0.08);
    color: #F7941D !important;
}

.swl-other-date-row svg {
    flex-shrink: 0;
    color: #F7941D;
}

/* === REGISTRATION FORM === */
.swl-kayit-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.swl-kayit-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #F7941D;
}

.swl-form-section {
    margin-bottom: 25px;
}

.swl-form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #F7941D;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F7941D;
}

.swl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.swl-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.swl-form-field .required {
    color: #e74c3c;
}

.swl-form-field input,
.swl-form-field select,
.swl-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.swl-form-field input:focus,
.swl-form-field select:focus,
.swl-form-field textarea:focus {
    border-color: #F7941D;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
    outline: none;
}

/* Radio buttons */
.swl-radio-group {
    display: flex;
    gap: 25px;
}

.swl-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.swl-radio-label input[type="radio"] {
    width: auto;
    accent-color: #F7941D;
    transform: scale(1.2);
}

/* Checkbox */
.swl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.swl-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: #F7941D;
    transform: scale(1.2);
    flex-shrink: 0;
}

.swl-checkbox-label a {
    color: #F7941D;
    font-weight: 600;
    text-decoration: underline;
}

.swl-checkbox-label a:hover {
    color: #e5850f;
}

/* KVKK validation */
.swl-kvkk-box {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.3s, background 0.3s;
}

.swl-kvkk-box.swl-kvkk-error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.swl-kvkk-warning {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fde8e8;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

/* Payment info box */
.swl-payment-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    border-left: 4px solid #F7941D;
}

.swl-payment-row {
    display: flex;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.swl-payment-row:last-child { border-bottom: none; }

.swl-pay-label {
    font-weight: 700;
    color: #333;
    min-width: 160px;
}

.swl-pay-value {
    color: #555;
    font-family: monospace;
}

/* Form note */
.swl-form-note {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #F7941D;
}

/* ICS download button */
.swl-btn-ics {
    display: inline-block;
    background: #F7941D;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.swl-btn-ics:hover {
    background: #e5850f;
    color: #fff !important;
}

/* Submit button */
.swl-form-actions {
    text-align: right;
    margin-top: 20px;
}

.swl-btn-submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 0.3px;
}

.swl-btn-submit:hover {
    background: #F7941D;
    transform: translateY(-1px);
}

.swl-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form messages */
.swl-form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.swl-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.swl-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === KVKK MODAL === */
.swl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swl-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.swl-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.swl-modal-content h2 {
    padding: 20px 25px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #F7941D;
}

.swl-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.7;
    color: #555;
    font-size: 14px;
}

.swl-modal-body h3, .swl-modal-body h4 {
    color: #333;
    margin-top: 20px;
}

.swl-modal-body ul, .swl-modal-body ol {
    padding-left: 20px;
}

.swl-modal-footer {
    padding: 15px 25px;
    text-align: right;
    border-top: 1px solid #e8e8e8;
}

.swl-btn-kapat {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    letter-spacing: 0.5px;
}

.swl-btn-kapat:hover {
    background: #F7941D;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .swl-etakvim-filters { flex-direction: column; gap: 12px; }
    .swl-egitim-detay-page { grid-template-columns: 1fr; }
    .swl-form-grid { grid-template-columns: 1fr; }
    .swl-modal-content { width: 95%; max-height: 90vh; }
    .swl-calendar-nav { flex-direction: column; gap: 10px; padding: 12px; }
    .swl-nav-left, .swl-nav-center, .swl-nav-right { justify-content: center; flex-wrap: wrap; }
    .swl-nav-select { min-width: 100px; font-size: 13px; }
    .swl-payment-row { flex-direction: column; gap: 2px; }
    .swl-em-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .swl-etakvim-wrapper { padding: 10px; }
    .swl-etakvim-filters { padding: 12px; }
    .swl-filter-group select { font-size: 16px; padding: 12px; }
    .swl-form-field input, .swl-form-field select, .swl-form-field textarea { font-size: 16px; padding: 12px; }
    .swl-btn-submit { width: 100%; padding: 14px; font-size: 16px; }
    .swl-btn-kayit { font-size: 15px; padding: 12px; }
    .swl-info-card { margin-bottom: 15px; }
    .swl-kayit-wrapper { padding: 0 10px; }
    .swl-nav-btn { padding: 6px 10px; font-size: 12px; }
    .swl-view-btn { padding: 6px 10px; font-size: 12px; }
    .fc .fc-daygrid-day-frame { min-height: 60px; }
}
