/* Genel Stiller */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablo Container */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.table-actions .btn:hover {
    transform: scale(1.1);
}

/* Katalog Tablosu */
.catalog-table {
    margin: 0;
    border: none;
}

.catalog-table th,
.catalog-table td {
    border: 2px solid #34495e;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    font-weight: bold;
}

.catalog-table th {
    background-color: #34495e;
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ürün Hücresi */
.product-cell {
    width: 300px;
    padding: 20px;
    background-color: #ecf0f1;
    position: relative;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-title:hover {
    color: #3498db;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
}

/* Header Hücreleri */
.header-olcu {
    background-color: #e74c3c !important;
    color: white;
    width: 120px;
}

.header-nakit {
    background-color: #27ae60 !important;
    color: white;
    width: 120px;
}

.header-kart {
    background-color: #f39c12 !important;
    color: white;
    width: 120px;
}

/* Veri Hücreleri */
.empty-cell {
    background-color: #ecf0f1;
    width: 50px;
    position: relative;
}

.size-cell {
    background-color: #ffebee;
    color: #c62828;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.size-cell:hover {
    background-color: #ffcdd2;
}

.price-cell {
    background-color: #e8f5e8;
    color: #2e7d32;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.price-cell:hover {
    background-color: #c8e6c9;
}

.discounted-cell {
    background-color: #fff3e0;
    color: #ef6c00;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.discounted-cell:hover {
    background-color: #ffe0b2;
}

/* Düzenlenebilir Elementler */
.editable {
    position: relative;
    transition: all 0.3s ease;
}

.editable:hover {
    background-color: rgba(52, 152, 219, 0.1);
    cursor: text;
}

.editable input {
    border: 2px solid #3498db !important;
    background: white !important;
    font-weight: bold;
    text-align: center;
}

/* Butonlar */
.delete-row-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.empty-cell:hover .delete-row-btn {
    opacity: 1;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: scale(1.05);
}

/* Modal Stiller */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .table-header h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .table-actions .btn {
        width: 35px;
        height: 35px;
    }
    
    .product-cell {
        width: 250px;
        padding: 15px;
    }
    
    .product-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .catalog-table th,
    .catalog-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .header-olcu,
    .header-nakit,
    .header-kart {
        width: 100px;
    }
    
    .btn-success,
    .btn-danger {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 10px;
    }
    
    .table-header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .table-header h2 {
        font-size: 1.2rem;
    }
    
    .table-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .product-cell {
        width: 200px;
        padding: 10px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .catalog-table th,
    .catalog-table td {
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .header-olcu,
    .header-nakit,
    .header-kart {
        width: 80px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.save-btn.btn-success {
    animation: pulse 0.6s ease-in-out;
}

/* Özel Scrollbar */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #2c3e50;
}

/* Focus Stiller */
input:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3) !important;
}

/* Print Stiller */
@media print {
    .table-actions,
    .delete-row-btn,
    .btn,
    .image-overlay {
        display: none !important;
    }
    
    .table-container {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .table-header {
        background: #000 !important;
        color: #fff !important;
    }
    
    .catalog-table th,
    .catalog-table td {
        border: 1px solid #000 !important;
    }
}