/* =========================== */
/* MAHAL BAĞLANTILARI SAYFA STİLLERİ */
/* =========================== */

.baglanti-page-wrapper {
    margin-top: 30px;
}

/* Animasyon için */
.animate-element {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-element:nth-child(1) { animation-delay: 0.1s; }
.animate-element:nth-child(2) { animation-delay: 0.2s; }
.animate-element:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.baglanti-container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.baglanti-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .baglanti-header h2 {
        color: #2d3748;
        font-weight: 700;
        margin: 0 0 1rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

        .baglanti-header h2 i {
            color: #667eea;
            font-size: 2rem;
        }

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

    .breadcrumb-path i {
        color: #667eea;
    }

    .breadcrumb-path span {
        font-weight: 500;
    }

/* Proje Seçim Kartı */
.proje-secim-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .proje-secim-card h5 {
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .proje-secim-card h5 i {
            color: #667eea;
        }

.proje-select-wrapper {
    position: relative;
}

    .proje-select-wrapper select {
        width: 100%;
        padding: 1rem 3rem 1rem 1.5rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 1rem;
        color: #2d3748;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
    }

        .proje-select-wrapper select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            outline: none;
        }

    .proje-select-wrapper::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        pointer-events: none;
        font-size: 1.2rem;
    }

/* =========================== */
/* CASCADE CARD YAPISI */
/* =========================== */

.cascade-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    transition: all 0.3s ease;
}

    .cascade-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

/* Card Header */
.cascade-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .cascade-card-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    .cascade-card-header h5 {
        margin: 0;
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        z-index: 1;
    }

        .cascade-card-header h5 i {
            font-size: 1.3rem;
        }

/* Add Button */
.btn-cascade-add {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .btn-cascade-add:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.1) rotate(90deg);
    }

    .btn-cascade-add i {
        font-size: 1.2rem;
    }

/* Card Body */
.cascade-card-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Scrollbar Stilleri */
    .cascade-card-body::-webkit-scrollbar {
        width: 6px;
    }

    .cascade-card-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .cascade-card-body::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 10px;
    }

        .cascade-card-body::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

/* Cascade Item */
.cascade-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .cascade-item:hover {
        border-color: #cbd5e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateX(4px);
    }

    .cascade-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
        color: white;
        font-weight: 600;
    }

        .cascade-item.active .cascade-item-text {
            color: white;
        }

/* Cascade item with checkbox (Oda sütunu için) */
.cascade-item-with-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

    .cascade-item-with-checkbox:hover {
        background: #f7fafc;
        border-color: #cbd5e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.oda-checkbox-left {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #10b981;
    margin: 0;
}

    .oda-checkbox-left:checked {
        background-color: #10b981;
        border-color: #10b981;
    }

.cascade-item-label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
}

.cascade-item-with-checkbox:has(.oda-checkbox-left:checked) {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

    .cascade-item-with-checkbox:has(.oda-checkbox-left:checked) .cascade-item-text {
        color: #065f46;
        font-weight: 600;
    }

        .cascade-item.active .btn-cascade-delete {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

            .cascade-item.active .btn-cascade-delete:hover {
                background: rgba(255, 255, 255, 0.3);
            }

.cascade-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.cascade-item-text {
    color: #2d3748;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Delete Button */
.btn-cascade-delete {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

    .btn-cascade-delete:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

/* Copy Button */
.btn-cascade-copy {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

    .btn-cascade-copy:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

/* Button Group (Copy + Delete) */
.cascade-item-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* Empty/Info States */
.cascade-empty,
.cascade-info {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

    .cascade-empty i,
    .cascade-info i {
        font-size: 3rem;
        color: #cbd5e0;
        margin-bottom: 1rem;
    }

    .cascade-empty p,
    .cascade-info p {
        margin: 0;
        font-size: 0.9rem;
    }

/* Proje Seç State */
.proje-sec-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

    .proje-sec-state i {
        font-size: 5rem;
        color: #cbd5e0;
        margin-bottom: 1.5rem;
    }

    .proje-sec-state h4 {
        color: #4a5568;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

/* Modal Stilleri */
.baglanti-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.baglanti-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    border: none;
}

    .baglanti-modal .modal-header h5 {
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .baglanti-modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

.baglanti-modal .modal-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

    .checkbox-list .form-check {
        padding: 0.75rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }

        .checkbox-list .form-check:hover {
            background: #f7fafc;
            border-color: #cbd5e0;
        }

        .checkbox-list .form-check .form-check-input {
            width: 20px;
            height: 20px;
            margin-top: 0;
        }

        .checkbox-list .form-check .form-check-label {
            margin-left: 0.5rem;
            font-weight: 500;
            color: #2d3748;
            cursor: pointer;
        }

/* Primary Button */
.btn-baglanti-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

    .btn-baglanti-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        color: white;
    }

/* Responsive */
@media (max-width: 1199px) {
    .cascade-card {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .cascade-card {
        height: 450px;
    }
}

@media (max-width: 767px) {
    .cascade-card {
        height: 400px;
        margin-bottom: 1rem;
    }

    .baglanti-container {
        padding: 0 1rem;
    }

    .breadcrumb-path {
        font-size: 0.85rem;
    }
}

/* =========================== */
/* İMALAT FORM STİLLERİ */
/* =========================== */

.imalat-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.imalat-form-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

    .imalat-form-header h5 {
        margin: 0;
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.imalat-form-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

    .imalat-form-body::-webkit-scrollbar {
        width: 6px;
    }

    .imalat-form-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .imalat-form-body::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 10px;
    }

.imalat-form-body .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .imalat-form-body .form-label i {
        color: #10b981;
    }

.imalat-form-body .form-control,
.imalat-form-body .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .imalat-form-body .form-control:focus,
    .imalat-form-body .form-select:focus {
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

.oda-checkbox-list {
    max-height: 150px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f7fafc;
}

    .oda-checkbox-list .form-check {
        margin-bottom: 0.5rem;
    }

        .oda-checkbox-list .form-check:last-child {
            margin-bottom: 0;
        }

    .oda-checkbox-list .form-check-input {
        width: 18px;
        height: 18px;
        border: 2px solid #cbd5e0;
    }

        .oda-checkbox-list .form-check-input:checked {
            background-color: #10b981;
            border-color: #10b981;
        }

    .oda-checkbox-list .form-check-label {
        margin-left: 0.5rem;
        font-weight: 500;
        color: #4a5568;
        cursor: pointer;
    }

/* Yeni Oda Checkbox Container (Horizontal) */
.oda-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    max-height: 120px;
    overflow-y: auto;
}

.oda-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .oda-checkbox-item:hover {
        border-color: #10b981;
        background: #f0fdf4;
    }

    .oda-checkbox-item .form-check-input {
        width: 18px;
        height: 18px;
        border: 2px solid #cbd5e0;
        margin: 0;
        cursor: pointer;
        display: block !important; /* Checkbox'ları göster */
        opacity: 1 !important;
        position: relative !important;
    }

        .oda-checkbox-item .form-check-input:checked {
            background-color: #10b981;
            border-color: #10b981;
        }

    .oda-checkbox-item .form-check-label {
        margin: 0;
        font-weight: 500;
        color: #4a5568;
        cursor: pointer;
        font-size: 0.9rem;
        user-select: none;
    }

.oda-checkbox-item:has(.form-check-input:checked) {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

    .oda-checkbox-item:has(.form-check-input:checked) .form-check-label {
        color: #065f46;
        font-weight: 600;
    }

.btn-imalat-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

    .btn-imalat-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        color: white;
    }

.imalat-form-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

    .imalat-form-empty i {
        font-size: 3rem;
        color: #cbd5e0;
        margin-bottom: 1rem;
    }

    .imalat-form-empty p {
        margin: 0;
        font-size: 0.9rem;
    }

/* =========================== */
/* İMALAT KAYITLARI TABLO */
/* =========================== */

.imalat-kayitlari-table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .imalat-kayitlari-table .table-header {
        margin-bottom: 1.5rem;
    }

        .imalat-kayitlari-table .table-header h5 {
            color: #2d3748;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

            .imalat-kayitlari-table .table-header h5 i {
                color: #10b981;
                font-size: 1.5rem;
            }

            .imalat-kayitlari-table .table-header h5 .badge {
                font-size: 0.85rem;
            }

    .imalat-kayitlari-table .table {
        margin: 0;
    }

        .imalat-kayitlari-table .table thead th {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            color: #2d3748;
            font-weight: 600;
            border: none;
            padding: 1rem;
            font-size: 0.9rem;
        }

        .imalat-kayitlari-table .table tbody tr {
            transition: all 0.3s ease;
        }

            .imalat-kayitlari-table .table tbody tr:hover {
                background: #f7fafc;
                transform: translateX(2px);
            }

        .imalat-kayitlari-table .table tbody td {
            padding: 0.75rem 1rem;
            vertical-align: middle;
            color: #4a5568;
            font-size: 0.9rem;
        }

        .imalat-kayitlari-table .table .btn-sm {
            padding: 0.4rem 0.6rem;
            font-size: 0.85rem;
        }

