/* ============================================
   TosiHobi ERP - Admin Panel Custom Styles
   ============================================ */

/* ─── Sidebar: Smaller Navigation Font ─── */
.fi-sidebar-item-label,
.fi-sidebar-item-button span {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
}

/* Sidebar item buttons — compact vertical padding */
.fi-sidebar-item-button {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

/* Sidebar nav list — tighter gap */
.fi-sidebar-nav ul, .fi-sidebar-nav > div, .fi-sidebar-nav > nav {
    gap: 0 !important;
}

/* Sidebar group — minimal top spacing */
.fi-sidebar-group {
    margin-top: 0.5rem !important;
    padding-top: 0 !important;
}
.fi-sidebar-group:first-child {
    margin-top: 0 !important;
}

/* Sidebar group label — tiny caps, compact */
.fi-sidebar-group-label,
nav [class*="sidebar-group"] > span,
nav [class*="sidebar-group"] > p {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.2rem !important;
    margin-bottom: 0.1rem !important;
}

/* Sidebar icons — slightly smaller to match font */
.fi-sidebar-item-icon {
    width: 1rem !important;
    height: 1rem !important;
}

/* ─── Active sidebar item: bolder highlight ─── */
.fi-sidebar-item-active .fi-sidebar-item-button {
    font-weight: 700 !important;
}

/* ─── Sidebar Group Color Differentiation ─── */
/* 1: Şirket Yönetimi — indigo */
.fi-sidebar-group:nth-child(1) .fi-sidebar-group-label,
.fi-sidebar-group:nth-child(1) > [class*="label"] {
    color: #6366f1 !important;
    border-bottom: 1px solid rgba(99,102,241,0.2);
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.fi-sidebar-group:nth-child(1) .fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(99,102,241,0.08) !important;
    border-left: 2px solid #6366f1 !important;
}

/* 2: Ürün Yönetimi — emerald */
.fi-sidebar-group:nth-child(2) .fi-sidebar-group-label,
.fi-sidebar-group:nth-child(2) > [class*="label"] {
    color: #059669 !important;
    border-bottom: 1px solid rgba(5,150,105,0.2);
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.fi-sidebar-group:nth-child(2) .fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(5,150,105,0.08) !important;
    border-left: 2px solid #059669 !important;
}

/* 3: Müşteriler & Tedarikçiler — violet */
.fi-sidebar-group:nth-child(3) .fi-sidebar-group-label,
.fi-sidebar-group:nth-child(3) > [class*="label"] {
    color: #7c3aed !important;
    border-bottom: 1px solid rgba(124,58,237,0.2);
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.fi-sidebar-group:nth-child(3) .fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(124,58,237,0.08) !important;
    border-left: 2px solid #7c3aed !important;
}

/* 4: Satış — amber */
.fi-sidebar-group:nth-child(4) .fi-sidebar-group-label,
.fi-sidebar-group:nth-child(4) > [class*="label"] {
    color: #b45309 !important;
    border-bottom: 1px solid rgba(180,83,9,0.2);
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.fi-sidebar-group:nth-child(4) .fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(180,83,9,0.08) !important;
    border-left: 2px solid #b45309 !important;
}

/* 5: Finans — sky */
.fi-sidebar-group:nth-child(5) .fi-sidebar-group-label,
.fi-sidebar-group:nth-child(5) > [class*="label"] {
    color: #0369a1 !important;
    border-bottom: 1px solid rgba(3,105,161,0.2);
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.fi-sidebar-group:nth-child(5) .fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(3,105,161,0.08) !important;
    border-left: 2px solid #0369a1 !important;
}

/* 6: Sistem — rose */
.fi-sidebar-group:nth-child(6) .fi-sidebar-group-label,
.fi-sidebar-group:nth-child(6) > [class*="label"] {
    color: #be123c !important;
    border-bottom: 1px solid rgba(190,18,60,0.2);
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.fi-sidebar-group:nth-child(6) .fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(190,18,60,0.08) !important;
    border-left: 2px solid #be123c !important;
}


/* ─── Notifications: softer appearance ─── */
/* Filament v5 notification container sits fixed top-right.
   We move it to bottom-right and reduce visual weight. */

[x-cloak] { display: none !important; }

/* Notification toast improvements */
.fi-notifications {
    --fi-notification-icon-size: 1.1rem;
}

/* Form sections – subtle depth on hover */
.fi-section {
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

/* Table row hover – very subtle */
.fi-ta-row:hover > td {
    background-color: rgba(99, 102, 241, 0.025) !important;
}

/* Badge improvements – slightly bolder */
.fi-badge {
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

/* Button improvements – micro-interaction */
.fi-btn {
    transition: all 0.15s ease !important;
}
.fi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.fi-btn:active {
    transform: translateY(0);
}

/* Form inputs – subtle focus ring improvement */
.fi-input:focus,
.fi-select-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Sidebar navigation – cleaner active state */
.fi-sidebar-item-active {
    border-left: 3px solid;
    border-left-color: var(--primary-500, #6366f1);
}

/* Stat overview cards – slight lift */
.fi-wi-stats-overview-stat {
    transition: box-shadow 0.2s ease;
}
.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Page header – cleaner separator */
.fi-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Repeater rows – visual separation */
.fi-fo-repeater-item {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 0.5rem !important;
    transition: border-color 0.15s ease;
}
.fi-fo-repeater-item:hover {
    border-color: rgba(99, 102, 241, 0.2) !important;
}

/* Success notification – brand green */
.fi-notification[data-type="success"] {
    border-left: 3px solid #10b981;
}
/* Warning notification */
.fi-notification[data-type="warning"] {
    border-left: 3px solid #f59e0b;
}
/* Danger notification */
.fi-notification[data-type="danger"] {
    border-left: 3px solid #ef4444;
}
/* Info notification */
.fi-notification[data-type="info"] {
    border-left: 3px solid #3b82f6;
}

/* Sıkı satır aralığı — tüm admin tabloları */
.fi-ta-table td,
.fi-ta-table th {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}
.fi-ta-table .fi-ta-text {
    line-height: 1.2 !important;
}

/* Sıkı tablolar — Ürünler & Siparişler: dar hücre, kısa satır */
.fi-resource-products .fi-ta-table td,
.fi-resource-products .fi-ta-table th,
.fi-resource-orders .fi-ta-table td,
.fi-resource-orders .fi-ta-table th {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fi-resource-products .fi-ta-table .fi-ta-text,
.fi-resource-orders .fi-ta-table .fi-ta-text {
    line-height: 1.1 !important;
    font-size: 0.75rem !important;
}
.fi-resource-orders .fi-ta-table select {
    font-size: 0.75rem !important;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
}
