﻿/* ── Sol Taraf Tıklanabilir Yapı ── */
.live-summary-sidebar .ls-item {
    cursor: pointer;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

    .live-summary-sidebar .ls-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(0, 180, 216, 0.3);
    }

/* ── 6. Adım Değişiklik Özeti Tablosu ── */
.diff-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.diff-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

    .diff-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.diff-label {
    color: #94a3b8;
    font-weight: 600;
    width: 30%;
    text-align: left;
}

.diff-old {
    color: #ef4444;
    text-decoration: line-through;
    width: 30%;
    text-align: center;
}

.diff-arrow {
    color: #64748b;
    font-size: 11px;
}

.diff-new {
    color: #10b981;
    font-weight: 700;
    width: 30%;
    text-align: right;
}

/* ── Wizard & Layout Containers ── */
.wo-main-wrapper {
    background: transparent;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    height: 550px;
    max-height: 90vh;
    overflow: hidden;
    contain: layout style;
}

.wiz-container {
    color: #f8fafc;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* 🔧 KRİTİK: Alt padding artırıldı, butonlar artık kesilmez */
    padding: 12px 14px 18px 14px;
    overflow: hidden;
}

/* ── Sol Taraf: Canlı Özet Paneli ── */
.live-summary-sidebar {
    background: transparent;
    border-radius: 12px 0 0 12px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

    .live-summary-sidebar::after {
        content: '';
        position: absolute;
        top: 0;
        right: -1px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, transparent, #00b4d8 20%, #90e0ef 50%, #00b4d8 80%, transparent);
        box-shadow: 0 0 10px rgba(0, 180, 216, 0.6);
    }

.ls-title {
    font-size: 15px;
    font-weight: 700;
    color: #00b4d8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ls-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

    .ls-item:last-child {
        border-bottom: none;
    }

.ls-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ls-val {
    font-size: 13px;
    color: #f8fafc;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ls-val.empty {
        color: #475569;
        font-weight: 400;
        font-style: italic;
    }

    .ls-val i {
        color: #00b4d8;
        font-size: 13px;
    }

/* ── Progress Bar & Status (SABİT) ── */
.wiz-progress,
.wiz-status-bar {
    flex-shrink: 0;
    width: 100%;
}

.wiz-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    position: relative;
}

.wiz-progress-track-container {
    position: absolute;
    top: 20px;
    left: 25px;
    right: 25px;
    height: 3px;
    z-index: 0;
}

.wiz-progress-bg {
    width: 100%;
    height: 100%;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
}

.wiz-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #00b4d8;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
    z-index: 1;
}

.wiz-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    cursor: default;
    width: 40px;
}

.wiz-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid rgba(148, 163, 184, 0.4);
    background: #151b23;
    color: #94a3b8;
    transition: all 0.4s ease;
}

.wiz-step-dot.done .wiz-dot {
    border-color: #00b4d8;
    color: #00b4d8;
    box-shadow: inset 0 0 10px rgba(0, 180, 216, 0.2);
}

.wiz-step-dot.active .wiz-dot {
    background: #00b4d8;
    border-color: #90e0ef;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15), 0 0 10px rgba(0, 180, 216, 0.4);
}

.wiz-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s;
}

.wiz-step-dot.active .wiz-step-label {
    color: #f8fafc;
}

.wiz-step-dot.done .wiz-step-label {
    color: #cbd5e1;
}

.wiz-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    font-size: 12px;
}

.wiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 600;
    color: #cbd5e1;
}

    .wiz-badge.remaining {
        background: rgba(0, 180, 216, 0.15);
        border-color: rgba(0, 180, 216, 0.3);
        color: #90e0ef;
    }

/* ── Scroll Edilebilir Panel Wrapper (ORTA ALAN) ── */
.wiz-panel-wrapper {
    /* 🔧 KRİTİK: Kalan tüm boşluğu alır ama footer'ı asla ezmez */
    flex: 1 1 0%;
    min-height: 0;
    max-height: calc(100% - 100px); /* Footer + progress + status için pay bırakır */
    overflow-y: auto;
    padding: 5px 2px;
    margin-bottom: 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

    .wiz-panel-wrapper::-webkit-scrollbar,
    .live-summary-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .wiz-panel-wrapper::-webkit-scrollbar-track,
    .live-summary-sidebar::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
        border-radius: 10px;
    }

    .wiz-panel-wrapper::-webkit-scrollbar-thumb,
    .live-summary-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
    }

        .wiz-panel-wrapper::-webkit-scrollbar-thumb:hover,
        .live-summary-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.3);
        }

.wiz-panel {
    display: none;
    animation: fadeSlideIn 0.3s ease;
}

    .wiz-panel.active {
        display: block;
    }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wiz-step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
    text-align: center;
}

    .wiz-step-title .wiz-icon {
        width: 34px;
        height: 34px;
        background: linear-gradient(135deg, #0077b6, #00b4d8);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 15px;
        box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
    }

.wiz-optional-badge {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3px 8px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Form Controls ───────── */
.wiz-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

    .wiz-form-grid.full {
        grid-template-columns: 1fr;
    }

.wiz-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
    display: block;
}

.wiz-required-star {
    color: #ef4444;
    margin-left: 3px;
}

.wiz-field-group {
    margin-bottom: 10px;
    width: 100%;
}

.wiz-panel .form-control, .wiz-panel .form-select {
    background-color: #121820;
    border: 1px solid #2d3748;
    color: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    height: auto;
    min-height: 40px;
    line-height: 1.5;
    transition: all 0.2s;
    width: 100%;
    font-size: 13px;
}

    .wiz-panel .form-control:focus, .wiz-panel .form-select:focus {
        background-color: #1a222c;
        border-color: #00b4d8;
        box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
        color: #fff;
    }

    .wiz-panel .form-control::placeholder {
        color: #64748b;
    }

    .wiz-panel .form-select option {
        background-color: #1e293b;
        color: #f8fafc;
    }

.wiz-panel textarea.form-control {
    min-height: 65px;
    resize: vertical;
}

/* ── Sabit Navigation Footer (En Alt) ── */
.wiz-footer {
    /* 🔧 KRİTİK: Footer asla küçülmez, her zaman görünür kalır */
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 30px ;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    background: transparent;
}

.btn-wiz-prev, .btn-wiz-next, .btn-wiz-save {
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1; /* Buton içi hizalama iyileştirildi */
}

.btn-wiz-prev {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .btn-wiz-prev:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

.btn-wiz-next {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .btn-wiz-next:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.15);
    }

    .btn-wiz-next:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.btn-wiz-save {
    background: #10b981;
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

    .btn-wiz-save:hover {
        background: #059669;
    }

/* ── Cards ──────────────── */
.wiz-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    position: relative;
}

    .wiz-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .wiz-card.selected {
        border-color: #00b4d8;
        background: rgba(0, 180, 216, 0.15);
        color: #fff;
    }

/* İş Emri ve Filo Seçimi Ortak Kart Izgarası */
#fleetCardGrid, #woCardGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px;
}

    #fleetCardGrid .wiz-card, #woCardGrid .wiz-card{
        width: 130px;
        padding: 12px 10px;
        flex: 0 0 auto;
    }

        #fleetCardGrid .c-icon, #woCardGrid .c-icon{
            font-size: 26px;
            margin-bottom: 8px;
            display: block;
            color: #90e0ef;
        }

        #fleetCardGrid .c-label, #woCardGrid .c-label{
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        #fleetCardGrid .c-sub, #woCardGrid .c-sub{
            font-size: 11px;
            color: #64748b;
            margin-top: 2px;
        }

#vehicleCardGrid, #maintPlanCardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 5px;
    width: 100%;
}

    #vehicleCardGrid .wiz-card, #maintPlanCardGrid .wiz-card {
        padding: 10px 6px;
    }

    #vehicleCardGrid .c-icon, #maintPlanCardGrid .c-icon {
        font-size: 12px;
        margin-bottom: 6px;
        display: block;
        color: #00b4d8;
    }

    #vehicleCardGrid .c-label, #maintPlanCardGrid .c-label {
        font-size: 12px;
        font-weight: 700;

    }

    #vehicleCardGrid .c-sub, #maintPlanCardGrid .c-sub {
        font-size: 11px;
        color: #64748b;
        margin-top: 2px;
    }

.wiz-invalid {
    border-color: #ef4444 !important;
}

.wiz-invalid-msg {
    font-size: 11px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
    text-align: left;
}
#Notes {
    resize: none !important;
    min-height: 10lh !important; 
    max-height: 10lh !important;
    line-height: 1.5;
    overflow-y: auto;
    height: auto !important;
    width: 100%;
    box-sizing: border-box;
}


@media (max-width: 768px) {
    #Notes {
        min-height: 3lh !important;
        max-height: 5lh !important;
    }
}
/* ── Responsive & Güvenlik ── */
@media (max-height: 600px) {
    .wo-main-wrapper {
        height: 85vh;
    }

    .wiz-container {
        padding: 8px 10px 14px 10px;
    }

    .wiz-progress {
        padding-bottom: 6px;
    }

    .wiz-status-bar {
        padding-bottom: 4px;
    }

    .wiz-footer {
        padding: 8px 0 2px;
    }
}

@media (max-width: 480px) {
    .wiz-form-grid {
        grid-template-columns: 1fr;
    }

    .wiz-step-label {
        display: none;
    }

    .btn-wiz-prev, .btn-wiz-next, .btn-wiz-save {
        padding: 8px 12px;
        font-size: 12px;
    }
}
