﻿/* =========================== */
/* İMALATLAR SAYFA STİLLERİ */
/* =========================== */
.imalat-page-wrapper {
    margin-top: 30px;
}

.imalat-container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.imalat-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);
}

    .imalat-header h2 {
        color: #2d3748;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.5rem;
    }

        .imalat-header h2 i {
            color: #667eea;
            font-size: 1.8rem;
        }

.imalat-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.imalat-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

    .imalat-stat-item i {
        color: #667eea;
    }

/* Filtre Kartları */
.filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .filter-card h5 {
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
    }

        .filter-card h5 i {
            color: #667eea;
        }

.filter-wrapper {
    position: relative;
}

    .filter-wrapper select {
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 0.95rem;
        color: #2d3748;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
    }

        .filter-wrapper select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            outline: none;
        }

        .filter-wrapper select:disabled {
            background: #f7fafc;
            cursor: not-allowed;
            opacity: 0.6;
        }

    .filter-wrapper::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #667eea;
        pointer-events: none;
        font-size: 1.1rem;
    }

/* Tablo Kartı */
.imalat-table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

    .imalat-table-card h4 {
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

        .imalat-table-card h4 i {
            color: #667eea;
        }

/* Tablo Stilleri */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.imalat-table {
    margin: 0;
    background: white;
}

    .imalat-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

        .imalat-table thead th {
            color: white;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
            padding: 1rem;
            border: none;
            white-space: nowrap;
        }

    .imalat-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #e2e8f0;
    }

        .imalat-table tbody tr:hover {
            background: #f7fafc;
        }

    .imalat-table tbody td {
        padding: 1rem;
        vertical-align: middle;
        color: #4a5568;
    }

    .imalat-table tbody tr:last-child {
        border-bottom: none;
    }

    /* Hiyerarşik Görünüm */
    .imalat-table tbody tr.ana-imalat {
        background: #f8faff;
        font-weight: 600;
    }

        .imalat-table tbody tr.ana-imalat:hover {
            background: #f0f4ff;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
        }

    .imalat-table tbody tr.alt-imalat {
        background: white;
    }

        .imalat-table tbody tr.alt-imalat td {
            padding-left: 3rem;
        }

        .imalat-table tbody tr.alt-imalat:hover {
            background: #fef8f8;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

.alt-imalat-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .alt-imalat-text::before {
        content: '└─';
        color: #9ca3af;
        font-weight: normal;
    }

/* Buton Stilleri */
.btn-imalat-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    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-imalat-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        color: white;
    }

.btn-imalat-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

    .btn-imalat-edit:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        color: white;
    }

.btn-imalat-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

    .btn-imalat-delete:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        color: white;
    }

/* Modal Stilleri */
.imalat-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.imalat-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    border: none;
}

    .imalat-modal .modal-header h5 {
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .imalat-modal .modal-header .btn-close {
        filter: brightness(0) invert(1);
        opacity: 0.8;
    }

.imalat-modal .modal-body {
    padding: 2rem;
}

.imalat-modal .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.imalat-modal .form-control, .imalat-modal .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

    .imalat-modal .form-control:focus, .imalat-modal .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Boş/Bilgi Durumu */
.imalat-empty-state, .info-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

    .imalat-empty-state i, .info-state i {
        font-size: 4rem;
        color: #cbd5e0;
        margin-bottom: 1rem;
    }

    .imalat-empty-state h5, .info-state h4 {
        color: #4a5568;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

/* Loading Efekti */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

    .btn-loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spinner 0.6s linear infinite;
    }

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .imalat-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .imalat-table thead {
        display: none;
    }

    .imalat-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1rem;
    }

        .imalat-table tbody tr.alt-imalat {
            margin-left: 1.5rem;
            border-left: 3px solid #667eea;
        }

    .imalat-table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }

    .imalat-table tbody tr.alt-imalat td {
        padding-left: 0;
    }

    .imalat-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #2d3748;
    }
}
