/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/

/*loader*/
/*.loaderbody {
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: absolute;
    background-color: rgba(128,128,128,0.2);
    z-index: 2147483647;
}

.loader {
    border: 16px solid #f3f3f3;*/ /* Light grey */
    /*border-top: 16px solid #3498db;*/ /* Blue */
    /*border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 45%;
    left: 40%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hide {
    display: none;
}*/
/* Boş olduğunda kırmızı kenarlık ekler */
/* Tüm yatay ve dikey scroll */

/* Tüm tablolar için sabit sütun genişliği */

.bg-orange {
    background-color: #FFA500 !important; /* Turuncu */
}

.border-orange {
    border-color: #FFA500 !important; /* Turuncu Çizgi */
}

.text-orange {
    color: #FFA500 !important; /* Turuncu İkon */
}

/* Kare istasyonlar */
.station-square {
    width: 15px;
    height: 15px;
    background-color: transparent;
    border: 2px solid #6c757d;
    display: inline-block;
}

    .station-square.bg-success {
        border-color: #28a745;
        background-color: #28a745;
    }

    .station-square.border-success {
        border-color: #28a745;
    }

/* Üçgen (sola dönük ok - trenin geçtiği yön) */
.station-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #28a745; /* Yeşil */
    display: inline-block;
    transform: rotate(-90deg); /* Sola dönük */
    margin-top: -2px;
}

.station-triangleRed {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid red; /* Yeşil */
    display: inline-block;
    transform: rotate(-90deg); /* Sola dönük */
    margin-top: -2px;
}

/* Yuvarlak istasyonlar (default) */
.station-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #6c757d;
    display: inline-block;
}

    .station-circle.bg-success {
        background-color: #28a745;
        border-color: #28a745;
    }

    .station-circle.border-success {
        border-color: #28a745;
    }

    .station-circle.bg-orange {
        background-color: #FFA500;
        border-color: #FFA500;
    }

    .station-circle.bg-danger {
        background-color: #dc3545;
        border-color: #dc3545;
    }

/* Çizgi stil */
.line-segment {
    width: 40px;
    height: 4px;
    margin: 0 3px;
}

.line-success {
    color: #48ca66;
}

.line-next {
    color: #1ae9e9;
}

.line-danger {
    background-color: #dc3545;
}

/* Tren ikonu konumlandırması */
.train-icon-container {
    position: relative;
    width: 35px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.train-icon {
    font-size: 20px;
    color: #FFA500;
    position: absolute;
    left: 9px;
    right: 0;
    margin: auto;
    animation: flash 2s infinite ease-in-out;
}
.icon-stationNext {
    font-size: 14px;
    color:#00ffff;
}
.icon-stationBefore {
    font-size: 14px;
    color: #48ca66;
}
.icon-lineFinish {
    font-size: 18px;
    margin: 0 0 14px;
}
.icon-line {
    font-size: 14px;
    margin: 0 12px 14px;
    
}
/* Tamamen kaybolmayan, %25–%100 arası yanıp sönen animasyon */
@keyframes flash {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.25;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/* Rota sütunu genişletildi */
.route-cell {
    min-width: 400px;
    max-width: 1000px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* İstasyon ismi kısaltma */
.station-label {
    font-size: 0.70rem;
    max-width: 50px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.turnist-table th,
.turnist-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

    /* Tren No ve Süre sütunlarını sabitle */
    .turnist-table th:first-child,
    .turnist-table td:first-child,
    .turnist-table th:last-child,
    .turnist-table td:last-child {
        width: 60px !important;
        min-width: 60px;
        max-width: 60px;
        text-align: center;
    }

    /* İstasyon sütunları için esnek genişlik */
    .turnist-table th:not(:first-child):not(:last-child),
    .turnist-table td:not(:first-child):not(:last-child) {
        width: auto !important;
        word-wrap: break-word;
        text-align: center;
    }

/* Yan yana gelen tabloların responsive olması için */
@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.invalid-feedback {
    font-size: 0.9rem;
    color: #ff5555;
}

.form-control.is-invalid {
    border-color: red;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
::-webkit-scrollbar {
    width: 14px; /* Dikey scroll genişliği */
    height: 14px; /* Yatay scroll yüksekliği */
}

::-webkit-scrollbar-track {
    background: #1b263b; /* Arka plan rengi */
}

::-webkit-scrollbar-thumb {
    background-color: #01678a; /* Kaydırma çubuğu rengi */
    border-radius: 8px; /* Yuvarlatılmış kenarlar */
    border: 4px solid #1b263b; /* Track ile aradaki boşluk */
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #00172c; /* Üzerine gelince renk */
    }
input:required:invalid {
    border-color: red;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
.empty-date {
    background-color: #ffffff; /* Beyaz olarak ayarlayabilirsiniz */
}
.confirm-modal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.3s ease-in-out;
}

.confirm-modal .modal-body {
    border-radius: 0 0 1rem 1rem;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.confirm-modal h5 {
    letter-spacing: 0.4px;
}

.confirm-modal .btn-danger {
    transition: all 0.2s ease-in-out;
}

.confirm-modal .btn-danger:hover {
        transform: scale(1.05);
}

.table.dataTable tbody tr.selected > * {
    box-shadow: inset 0 0 0 9999px #33a3be;
    color: white;
    font-weight: bold;
}

/*
.dual-listbox {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px;
    background-color: #f8f9fa;
}

    .dual-listbox .form-label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #495057;
    }

    .dual-listbox select {
        width: 100%;
        min-height: 220px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        padding: 6px;
        font-size: 0.95rem;
    }

        .dual-listbox select option:checked {
            background-color: #0d6efd !important;
            color: white !important;
        }

.dual-listbox-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

    .dual-listbox-buttons button {
        width: 42px;
        padding: 4px 6px;
        font-weight: bold;
    }*/

.list-group-item {
    cursor: grab;
    transition: background-color 0.2s;
}

    .list-group-item:hover {
        background-color: #3a3a3a;
    }

    .list-group-item.active {
        background-color: #007bff !important;
        color: white;
    }

    .list-group-item.dragging {
        opacity: 0.6;
    }



    /* external dizayn start*/

/* --- DARK THEME & MODERN UI CSS --- */

/* 1. ANA SAYFA STİLLERİ */
.glass-card {
    background: rgba(30, 30, 40, 0.75); /* Koyu arka plan */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.table-modern thead th {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ced4da;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.table-modern tbody td {
    vertical-align: middle;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #e9ecef;
}

.row-hover {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .row-hover:hover {
        background-color: rgba(255, 255, 255, 0.08) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

/* Form Elemanları */
.form-control, .form-select, .input-group-text {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    height: 38px;
}

    .form-control::placeholder {
        color: #6c757d;
    }

    .form-control:focus {
        background-color: rgba(0, 0, 0, 0.4) !important;
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    }

input[type="date"] {
    color-scheme: dark;
}

/* Avatar & Badges */
.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.log-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 65px;
    text-align: center;
}

.badge-soft-info {
    background-color: rgba(13, 202, 240, 0.15);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.badge-soft-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ea868f;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.badge-soft-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* --- MODERN TOGGLE BUTTONS (GÜNCELLENDİ) --- */
.btn-group-modern {
    display: flex;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-modern-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.btn-group-modern .btn-check + .btn-modern-toggle {
    border-right: none;
}

.btn-group-modern .btn-check:last-child + .btn-modern-toggle {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modern-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* --- BUTON RENK AYRIMLARI --- */

/* 1. Varsayılan (Kullanıcı/Sistem ve Tümü) - Mavi */
.btn-check:checked + .btn-modern-toggle {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.6), rgba(13, 110, 253, 0.3));
    backdrop-filter: blur(5px);
    color: #fff;
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: inset 0 0 10px rgba(13, 110, 253, 0.2), 0 4px 10px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 2. Bilgi (Info) - Turkuaz */
#lvlInfo:checked + .btn-modern-toggle {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.6), rgba(13, 202, 240, 0.3));
    border-color: rgba(13, 202, 240, 0.5);
    box-shadow: inset 0 0 10px rgba(13, 202, 240, 0.2), 0 4px 10px rgba(0,0,0,0.3);
    color: #fff;
}

/* 3. Hata (Error) - Kırmızı */
#lvlErr:checked + .btn-modern-toggle {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.6), rgba(220, 53, 69, 0.3));
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: inset 0 0 10px rgba(220, 53, 69, 0.2), 0 4px 10px rgba(0,0,0,0.3);
    color: #fff;
}

/* 4. Uyarı (Warning) - Sarı/Turuncu */
#lvlWarn:checked + .btn-modern-toggle {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.6), rgba(255, 193, 7, 0.3));
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: inset 0 0 10px rgba(255, 193, 7, 0.2), 0 4px 10px rgba(0,0,0,0.3);
    color: #fff;
}

.btn-modern-toggle i {
    font-size: 1.1em;
    margin-right: 6px;
    position: relative;
    top: -1px;
}

.text-custom-muted {
    color: #adb5bd !important;
}

.text-custom-light {
    color: #f8f9fa !important;
}

/* 2. MODAL STİLLERİ (SLATE MAT) */
.modal-dark-style .modal-content {
    background-color: #2b3035;
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-dark-style .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-dark-style .modal-footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-dark-style .text-label {
    color: #adb5bd !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.modal-dark-style .text-value {
    color: #ffffff !important;
    font-weight: 500;
}

.accordion-dark-style .accordion-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e9ecef;
    box-shadow: none;
}

    .accordion-dark-style .accordion-button:not(.collapsed) {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

.accordion-dark-style .accordion-body {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ced4da;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* enternal dizayn end */