/* ========================================
   RAWAJ POS - Professional Design System
   تصميم احترافي متكامل - RTL/LTR
======================================== */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}

/* ========================================
   RTL/LTR Base Setup
======================================== */

/* العربية - من اليمين لليسار */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* الإنجليزية - من اليسار لليمين */
html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* ========================================
   App Layout - يعمل مع RTL و LTR
======================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   Sidebar - احترافي مع RTL
======================================== */

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

/* LTR: Sidebar في اليسار */
html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="ltr"] .main-content {
    margin-left: 260px;
    margin-right: 0;
}

/* RTL: Sidebar في اليمين */
html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] .main-content {
    margin-right: 260px;
    margin-left: 0;
}

.main-content {
    flex: 1;
    min-height: 100vh;
    width: calc(100% - 260px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

/* ========================================
   Mobile: Sidebar مخفي
======================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
    
    /* LTR Mobile: يختفي لليسار */
    html[dir="ltr"] .sidebar {
        transform: translateX(-100%);
    }
    
    html[dir="ltr"] .sidebar.active {
        transform: translateX(0);
    }
    
    /* RTL Mobile: يختفي لليمين */
    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    
    html[dir="rtl"] .sidebar.active {
        transform: translateX(0);
    }
    
    /* Content عرض كامل */
    .main-content {
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Overlay */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        backdrop-filter: blur(2px);
        animation: fadeIn 0.3s;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    html[dir="ltr"] .main-content {
        margin-left: 220px;
    }
    
    html[dir="rtl"] .main-content {
        margin-right: 220px;
    }
    
    .main-content {
        width: calc(100% - 220px);
    }
}

/* ========================================
   Sidebar Content
======================================== */

.sidebar-logo {
    text-align: center;
    padding: 1.25rem 0 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-logo h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin: 0;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.375rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* LTR: Icon على اليسار، Transform لليمين */
html[dir="ltr"] .sidebar-menu a {
    gap: 1rem;
}

html[dir="ltr"] .sidebar-menu a::before {
    transform-origin: left;
}

html[dir="ltr"] .sidebar-menu a:hover {
    transform: translateX(6px);
}

/* RTL: Icon على اليمين، Transform لليسار */
html[dir="rtl"] .sidebar-menu a {
    gap: 1rem;
    flex-direction: row-reverse;
}

html[dir="rtl"] .sidebar-menu a::before {
    transform-origin: right;
}

html[dir="rtl"] .sidebar-menu a:hover {
    transform: translateX(-6px);
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.sidebar-menu a:hover::before {
    transform: scaleX(1);
}

.sidebar-menu a.active {
    background: white;
    color: #1e40af;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.sidebar-menu a.active:hover {
    transform: none;
}

.sidebar-menu a i {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ========================================
   Header
======================================== */

.header {
    background: white;
    padding: 1.125rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 75px;
    border-bottom: 1px solid #f1f5f9;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header h1 {
    font-size: clamp(1.375rem, 3vw, 2rem);
    color: #111827;
    font-weight: 700;
    margin: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.375rem;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header {
        padding: 1rem 1.25rem;
    }
}

/* Language Switcher */
.lang-switcher {
    background: #f3f4f6;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9375rem;
}

.lang-switcher:hover {
    background: #e5e7eb;
    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-2px);
}

/* ========================================
   Dashboard Grid
======================================== */

.dashboard-grid {
    display: grid;
    gap: 1.75rem;
    padding: 1.75rem;
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1441px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Cards
======================================== */

.card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

html[dir="ltr"] .card::before {
    left: 0;
    transform-origin: left;
}

html[dir="rtl"] .card::before {
    right: 0;
    transform-origin: right;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
        min-height: 130px;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    color: #6b7280;
    font-weight: 600;
    margin: 0;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-value {
    font-size: clamp(2rem, 4.5vw, 2.625rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.card-label {
    font-size: 0.9375rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Card Colors */
.card.primary .card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.card.success .card-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.card.warning .card-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.card.danger .card-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* ========================================
   POS Layout
======================================== */

.pos-container {
    padding: 1.75rem;
    min-height: calc(100vh - 75px);
}

.pos-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 1.75rem;
    min-height: calc(100vh - 150px);
}

@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-section {
        position: sticky;
        bottom: 0;
        background: white;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
        z-index: 50;
        max-height: 55vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .pos-layout {
        grid-template-columns: 1fr 400px;
    }
}

/* Products Section */
.products-section {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.search-bar {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1.125rem 1.125rem 1.125rem 3.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1.0625rem;
    transition: all 0.2s;
    font-family: inherit;
    background: #fafbfc;
}

html[dir="rtl"] .search-bar input {
    padding: 1.125rem 3.5rem 1.125rem 1.125rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

.search-bar i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
}

html[dir="ltr"] .search-bar i {
    left: 1.25rem;
}

html[dir="rtl"] .search-bar i {
    right: 1.25rem;
}

.products-grid {
    display: grid;
    gap: 1.125rem;
    overflow-y: auto;
    padding: 0.625rem;
    max-height: calc(100vh - 320px);
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1441px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

html[dir="ltr"] .product-card::before {
    left: 0;
    transform-origin: left;
}

html[dir="rtl"] .product-card::before {
    right: 0;
    transform-origin: right;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.product-card:active {
    transform: translateY(-4px);
}

.product-image {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #2563eb;
}

.product-stock {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 640px) {
    .product-card {
        padding: 1.125rem;
    }
    
    .product-card h4 {
        font-size: 0.9375rem;
    }
    
    .product-price {
        font-size: 1.0625rem;
    }
}

/* ========================================
   Cart Section
======================================== */

.cart-section {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 1rem;
    gap: 1.125rem;
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.cart-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cart-item-price {
    font-size: 0.9375rem;
    color: #6b7280;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-quantity button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-item-quantity button:hover {
    background: #fafbfc;
    border-color: #3b82f6;
    color: #3b82f6;
}

.cart-item-quantity button:active {
    transform: scale(0.95);
}

.cart-total {
    padding: 1.5rem 0 0 0;
    border-top: 2px solid #f1f5f9;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.cart-total-row.final {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    padding-top: 1.25rem;
    border-top: 2px solid #e5e7eb;
    margin-top: 0.75rem;
}

/* ========================================
   Buttons
======================================== */

.btn {
    padding: 1.125rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .btn {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ========================================
   Tables
======================================== */

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: white;
    border: 1px solid #f1f5f9;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    padding: 1.125rem;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

td {
    padding: 1.125rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
    color: #111827;
}

tr:hover {
    background: #fafbfc;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
    text-align: right;
}

html[dir="ltr"] th,
html[dir="ltr"] td {
    text-align: left;
}

@media (max-width: 768px) {
    table {
        min-width: 500px;
        font-size: 0.9375rem;
    }
    
    th, td {
        padding: 1rem 0.75rem;
    }
}

/* ========================================
   Forms
======================================== */

.form-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.0625rem;
    transition: all 0.2s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

@media (max-width: 640px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ========================================
   Modals
======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.25rem;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.25rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@media (max-width: 640px) {
    .modal-content {
        padding: 1.75rem;
        max-width: 95%;
        border-radius: 16px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
}

.modal-header h3 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.375rem;
    color: #6b7280;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

/* ========================================
   Animations
======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(40px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in { animation: fadeIn 0.3s; }
.slide-up { animation: slideUp 0.3s; }

/* ========================================
   Scrollbar
======================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 10px;
    border: 3px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

/* ========================================
   Utilities
======================================== */

.text-center { text-align: center; }
.hide-mobile { display: none !important; }

@media (min-width: 769px) {
    .hide-mobile { display: block !important; }
    .show-mobile { display: none !important; }
}

/* ========================================
   Print
======================================== */

@media print {
    .sidebar,
    .header,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        width: 100% !important;
    }
    
    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
