/*
 * Transfomax Premium UI Framework
 * Metronic 8 tabanlı lüks ve modern arayüz geliştirmeleri
 */

/* --- Ekranı Yatayda Verimli Kullanma (global) ---
   Container yan boşluklarını azaltarak içeriği sağa/sola yaslar.
   NOT: !important KULLANMA -> aksi halde Bootstrap'in px-0 vb. utility'lerini ezer.
   premium.css bundle'dan SONRA yüklendiği için eşit özgüllükte zaten kazanır. */
.container-fluid { padding-left: 4px; padding-right: 4px; }

/* --- Özet İstatistik Kartları (toplamlar) --- */
.summary-stat {
    border-radius: 0.85rem;
    padding: 0.65rem 1rem;
    min-width: 150px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.summary-stat .summary-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02rem;
    opacity: 0.75;
}
.summary-stat .summary-stat-main { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.summary-stat .summary-stat-sub  { font-size: 0.78rem; font-weight: 600; opacity: 0.7; }
.summary-stat.is-grand { background: linear-gradient(135deg, #009ef7 0%, #0080d4 100%); color: #fff; box-shadow: 0 0.5rem 1.25rem rgba(0,158,247,0.35); }
.summary-stat.is-gross { background: #f1faff; color: #0b5e8c; }
.summary-stat.is-disc  { background: #fff5f8; color: #d63384; }

/* --- Tablo Tasarımı --- */
.table.table-premium {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.table.table-premium thead th {
    background-color: #f9f9f9;
    border: none;
    color: #5E6278 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03rem;
    padding: 1.25rem 1rem !important;
}

.table.table-premium tbody tr {
    background-color: #ffffff;
    box-shadow: 0 0.1rem 0.5rem 0 rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
}

.table.table-premium tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff !important;
}

.table.table-premium td {
    border: none !important;
    padding: 1.25rem 1rem !important;
    vertical-align: middle;
}

/* Metronic 8 Dashed style override */
.table.table-row-dashed tr {
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color: #E4E6EF;
}

/* --- Kartlar ve Sayfa Yapısı --- */
.card.premium-card {
    border: none !important;
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02) !important;
    border-radius: 0.85rem !important;
}

.premium-shadow {
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.05) !important;
}

/* --- Butonlar (Soft Colors) --- */
.btn-premium-cyan {
    background-color: #e8fafb !important;
    color: #008a94 !important;
}
.btn-premium-cyan:hover {
    background-color: #008a94 !important;
    color: #ffffff !important;
}

.btn-premium-purple {
    background-color: #f6efff !important;
    color: #7239ea !important;
}
.btn-premium-purple:hover {
    background-color: #7239ea !important;
    color: #ffffff !important;
}

/* --- Modal Güzelleştirme (Premium Visuals) --- */
.modal-premium .modal-content {
    border-radius: 1.5rem !important;
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.98);
    border: none !important;
    box-shadow: 0 0.5rem 3.5rem 0 rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}

.modal-premium .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #F1F1F2;
    padding: 1.75rem 2.25rem !important;
    position: relative;
    display: flex;
    align-items: center;
}

.modal-premium .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #009ef7 0%, #7239ea 100%);
}

.modal-premium .modal-title {
    font-weight: 800 !important;
    color: #181C32;
    font-size: 1.4rem !important;
    letter-spacing: -0.02rem;
}

.modal-premium .modal-footer {
    background-color: #F9FAFB;
    border-top: 1px solid #F1F1F2;
    padding: 1.5rem 2.25rem !important;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

/* --- Form Elemanları (Premium Look) --- */
.modal-premium .form-label {
    font-weight: 700 !important;
    color: #3F4254;
    margin-bottom: 0.6rem !important;
    font-size: 0.95rem;
}

.modal-premium .form-control-solid, 
.modal-premium .form-select-solid {
    background-color: #f5f8fa !important;
    border: 1px solid #f5f8fa !important;
    border-radius: 0.85rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.85rem 1.15rem;
    color: #181C32;
    font-weight: 500;
}

.modal-premium .form-control-solid:focus,
.modal-premium .form-select-solid:focus {
    background-color: #ffffff !important;
    border-color: #009ef7 !important;
    box-shadow: 0 0 0 4px rgba(0, 158, 247, 0.05) !important;
    transform: translateY(-1px);
}

/* --- Animasyonlar --- */
.modal.fade.modal-premium .modal-dialog {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show.modal-premium .modal-dialog {
    transform: scale(1) translateY(0);
}

/* --- Arama Kutusu (Advanced) --- */
.search-premium {
    background-color: #f5f8fa !important;
    border: 1px solid #f5f8fa !important;
    border-radius: 0.85rem !important;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.search-premium:focus {
    background-color: #ffffff !important;
    border-color: #009ef7 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 158, 247, 0.15) !important;
    width: 350px !important;
}

/* --- Modern Seperator --- */
.separator.separator-dashed {
    border-bottom-style: dashed;
    border-bottom-width: 1px;
    border-bottom-color: #E4E6EF;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #E4E6EF;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B5B5C3;
}
