/* Modern Kurdish RTL Store Management System Styles */

/* NRT-Reg Font Face Declaration */
@font-face {
    font-family: "NRT-Reg";
    src: url("../font/NRT-Reg/NRT-Reg.eot"); /* IE9 Compat Modes */
    src: url("../font/NRT-Reg/NRT-Reg.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
        url("../font/NRT-Reg/NRT-Reg.woff") format("woff"), /* Modern Browsers */
        url("../font/NRT-Reg/NRT-Reg.ttf") format("truetype"), /* Safari, Android, iOS */
        url("../font/NRT-Reg/NRT-Reg.svg#NRT-Reg") format("svg"); /* Legacy iOS */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-warning: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    font-family: 'NRT-Reg', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    padding-bottom: 60px;
    direction: rtl;
    text-align: right;
    font-size: 15px;
}

/* Apply NRT-Reg font to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
.navbar-brand, .nav-link, .dropdown-item,
.btn, .form-control, .form-label,
.card-title, .card-text {
    font-family: 'NRT-Reg', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Beautiful Right Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    display: flex;
    flex-direction: column;
}

/* Collapsed Sidebar State */
.sidebar-nav.collapsed {
    width: 80px;
}

.sidebar-nav.collapsed .brand-text,
.sidebar-nav.collapsed .nav-text,
.sidebar-nav.collapsed .dropdown-icon {
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    overflow: hidden;
    display: none;
}

.sidebar-nav.collapsed .sidebar-submenu {
    display: none !important;
    max-height: 0 !important;
}

.sidebar-nav.collapsed .sidebar-nav-link {
    justify-content: center;
    padding: 0.875rem;
    position: relative;
}

.sidebar-nav.collapsed .sidebar-nav-link i:first-child {
    margin: 0;
    width: auto;
}

.sidebar-nav.collapsed .sidebar-header {
    padding: 1.5rem 0.75rem;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-nav.collapsed .sidebar-header-actions {
    width: 100%;
    justify-content: center;
}

.sidebar-nav.collapsed .sidebar-brand {
    justify-content: center;
    width: 100%;
}

.sidebar-nav.collapsed .sidebar-nav-list {
    padding: 1rem 0.5rem;
}

.sidebar-nav.collapsed .sidebar-collapse-toggle {
    margin-right: 0;
    width: 100%;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    position: relative;
    transition: padding 0.3s ease;
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'NRT-Reg', sans-serif;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.sidebar-brand i {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-brand .brand-text {
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-collapse-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-right: auto;
}

.sidebar-collapse-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sidebar-user-info {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.sidebar-nav.collapsed .sidebar-user-info {
    flex-direction: column;
    padding: 1rem 0.5rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'NRT-Reg', sans-serif;
}

.user-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    font-family: 'NRT-Reg', sans-serif;
}

.sidebar-nav.collapsed .user-details {
    display: none;
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'NRT-Reg', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateX(-3px);
}

.sidebar-logout-btn i {
    font-size: 1.2rem;
}

.sidebar-nav.collapsed .sidebar-logout-btn {
    justify-content: center;
    padding: 0.875rem;
}

.sidebar-nav.collapsed .sidebar-logout-btn .nav-text {
    display: none;
}

.sidebar-nav-list {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex: 1;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'NRT-Reg', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-nav-link .nav-text {
    transition: opacity 0.3s ease, visibility 0.3s ease, max-width 0.3s ease;
    flex: 1;
}

.sidebar-nav-link .dropdown-icon {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ffffff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.sidebar-nav-link:hover::before,
.sidebar-nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-nav-link i:first-child {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-nav-link:hover i:first-child {
    transform: scale(1.15);
}

.sidebar-nav-link .dropdown-icon {
    margin-right: auto;
    margin-left: 0;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.sidebar-dropdown.active .dropdown-icon {
    transform: rotate(-90deg);
}

/* Submenu Styles */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    margin-right: 1rem;
    opacity: 1;
    visibility: visible;
}

.sidebar-dropdown.active .sidebar-submenu {
    max-height: 1000px;
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-family: 'NRT-Reg', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    margin-bottom: 0.25rem;
}

.sidebar-submenu-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #ffffff;
    border-radius: 3px 0 0 3px;
    transition: height 0.25s ease;
}

.sidebar-submenu-item:hover::before {
    height: 60%;
}

.sidebar-submenu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(-3px);
    padding-right: 1.2rem;
}

.sidebar-submenu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.sidebar-submenu-item:hover i {
    transform: scale(1.2);
    opacity: 1;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
    border: none;
}

/* Main Content Area */
.main-content {
    margin-right: 280px;
    min-height: 100vh;
    padding: 2rem;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .main-content {
    margin-right: 80px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Tooltip for collapsed sidebar */
.sidebar-nav.collapsed .sidebar-nav-link {
    position: relative;
}

.sidebar-nav.collapsed .sidebar-nav-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 2000;
    pointer-events: none;
    font-family: 'NRT-Reg', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease;
    font-weight: 500;
}

.sidebar-nav.collapsed .sidebar-nav-link[title]:hover::before {
    content: '';
    position: absolute;
    right: calc(100% + 9px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.95);
    z-index: 2001;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar-nav {
        transform: translateX(100%);
        width: 280px;
    }

    .sidebar-nav.active {
        transform: translateX(0);
    }

    .sidebar-nav.collapsed {
        width: 280px;
    }

    .main-content {
        margin-right: 0 !important;
        padding: 1rem;
        padding-top: 5rem;
    }

    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        backdrop-filter: blur(2px);
    }
}

/* Desktop - Always visible */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .sidebar-collapse-toggle {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar-collapse-toggle {
        display: none !important;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* KPI Cards */
.kpi-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.kpi-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.kpi-card.success::before {
    background: var(--success-color);
}

.kpi-card.danger::before {
    background: var(--danger-color);
}

.kpi-card.warning::before {
    background: var(--warning-color);
}

.kpi-card.info::before {
    background: var(--info-color);
}

/* Table Styles */
.table {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Status Colors */
.status-paid {
    color: var(--success-color);
    font-weight: 600;
}

.status-pending {
    color: var(--warning-color);
    font-weight: 600;
}

.status-overdue {
    color: var(--danger-color);
    font-weight: 600;
}

.status-partial {
    color: var(--info-color);
    font-weight: 600;
}

/* Footer */
.footer-custom {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Container */
.container-fluid {
    padding: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.table {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Utility Classes */
.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-success {
    background: var(--gradient-success);
}

.gradient-danger {
    background: var(--gradient-danger);
}

.gradient-warning {
    background: var(--gradient-warning);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Specific Styles */
.product-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.empty-state {
    padding: 3rem 1rem;
}

.info-item {
    padding: 0.5rem 0;
}

.info-item label {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Table Enhancements */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    text-transform: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Form Enhancements */
.form-switch-lg .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.input-group-text {
    font-family: 'NRT-Reg', sans-serif;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
}

.modal-header {
    border-radius: 16px 16px 0 0;
}

.modal-footer {
    border-radius: 0 0 16px 16px;
}

/* Kurdish Text Optimization */
* {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Specific Styles */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Enhanced Main Content Area - Overridden by .main-content */
main.flex-grow-1 {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

@media (max-width: 768px) {
    main.flex-grow-1 {
        padding: 1rem 0;
    }
}

/* Footer Enhancements */
.footer-custom {
    font-family: 'NRT-Reg', sans-serif;
    margin-top: auto;
    margin-right: 280px;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .footer-custom {
    margin-right: 80px;
}

@media (max-width: 991.98px) {
    .footer-custom {
        margin-right: 0;
    }

    body.sidebar-collapsed .footer-custom {
        margin-right: 0;
    }
}

.footer-custom small {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}