@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&display=swap');

:root {
    --primary-color: #6C63FF; /* A modern, vibrant purple */
    --secondary-color: #00C4B4; /* A fresh teal */
    --background-color: #F8F9FA; /* Lighter background */
    --card-background: #FFFFFF;
    --text-color: #212529; /* Darker text for better contrast */
    --light-text-color: #6C757D; /* Muted light text */
    --border-color: #DEE2E6; /* Softer border */
    --shadow-color: rgba(0, 0, 0, 0.08); /* Slightly more pronounced shadow */
    --accent-color: #FFC107; /* A warm accent for highlights */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    direction: rtl; /* Right-to-left for Arabic */
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on body */
}

/* Hide default scrollbars and apply modern styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.4) rgba(0, 0, 0, 0.05);
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 2px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.6), rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(108, 99, 255, 0.2);
}

*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(139, 92, 246, 0.8));
    transform: scale(1.05);
}

*::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

#page-content-wrapper {
    width: 100%;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}



.card {
    border: none; /* Remove default border */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 6px 20px var(--shadow-color); /* Softer, larger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-background);
}

.card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.card-header {
    background-color: var(--card-background);
    border-bottom: none; /* Remove default border */
    padding: 20px 25px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color); /* Header text color */
    border-top-left-radius: 12px; /* Match card border-radius */
    border-top-right-radius: 12px;
}

.card-title {
    font-size: 1.6em; /* Slightly smaller for better hierarchy */
    font-weight: 700;
    color: var(--text-color);
}

.form-label {
    font-weight: 600; /* Slightly less bold */
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 14px 16px; /* More padding */
    border: 1px solid var(--border-color);
    border-radius: 10px; /* More rounded corners */
    font-size: 1.05em; /* Slightly larger font */
    color: var(--text-color);
    background-color: var(--background-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.25); /* Updated shadow with new primary color */
    background-color: var(--card-background); /* White background on focus */
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 14px 30px; /* More padding */
    font-size: 1.15em; /* Slightly larger font */
    font-weight: 600; /* Slightly less bold */
    border-radius: 10px; /* More rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #5A53D9 !important; /* Darker shade of primary on hover */
    border-color: #5A53D9 !important;
    transform: translateY(-3px); /* More pronounced lift */
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.4); /* Enhanced shadow on hover */
}

.list-group-item {
    background-color: var(--card-background); /* White background for list items */
    border: 1px solid var(--border-color);
    border-radius: 10px; /* More rounded corners */
    padding: 15px 20px; /* More padding */
    margin-bottom: 12px; /* More spacing */
    font-size: 1.05em;
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03); /* Subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-group-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.list-group-item:last-child {
    margin-bottom: 0;
}


/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans Arabic', sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-section {
    margin-bottom: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #5A53D9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), #5A53D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 15px;
    color: #adb5bd;
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:hover .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), #5A53D9);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.btn-text {
    flex: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(-3px);
}

.error-message {
    background: #fee;
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid #fcd0d0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* All Cards Row */
.all-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
    justify-content: center;
}

/* Totals Card Row */
.totals-card-row {
    margin-bottom: 50px;
}

/* Dashboard Cards */
.dashboard-card {
    flex: 1 1 320px;
    max-width: 380px;
    min-width: 300px;
    border: none;
    border-radius: 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(20px);
    padding: 8px;
}

/* Card Content Column Layout */
.card-content-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 200px;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:active {
    transform: translateY(-5px) scale(0.98);
}

.buy-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.buy-card:hover {
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.4);
}

.sell-card {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    color: white;
}

.sell-card:hover {
    box-shadow: 0 25px 80px rgba(236, 72, 153, 0.4);
}

.totals-card {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.totals-card:hover {
    box-shadow: 0 25px 80px rgba(6, 182, 212, 0.4);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white !important;
}

.total-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-amount .amount {
    display: block;
    font-size: 3.2rem;
    margin-bottom: 6px;
}

.total-amount .currency {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover .card-action {
    opacity: 1;
}

.card-action i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-info {
    margin-top: 15px;
    opacity: 0.8;
    font-weight: 500;
}

/* Redesigned Totals Card Content */
.totals-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.totals-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.totals-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.total-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.total-metric:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.total-metric.net-metric {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    grid-column: 1 / -1;
    justify-content: center;
}


/* Compact Totals Display */
.totals-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.total-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.total-compact-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-compact-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: right;
}

.total-compact-value .amount {
    display: inline-block;
    margin-left: 4px;
}

.total-compact-value .currency {
    font-size: 10px;
    opacity: 0.8;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.bought-icon {
    background: rgba(79, 172, 254, 0.8);
}

.sold-icon {
    background: rgba(16, 185, 129, 0.8);
}

.net-icon {
    background: rgba(245, 158, 11, 0.8);
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.metric-value .amount {
    display: inline-block;
    margin-right: 4px;
}

.metric-value .currency {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Modern Tabs */
.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    border-radius: 24px 24px 0 0;
}

.nav-tabs {
    border: none;
    padding: 8px;
    gap: 8px;
}

.nav-tabs .nav-link {
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    margin: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-tabs .nav-link:hover::before {
    left: 100%;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.nav-tabs .nav-link i {
    margin-left: 8px;
}

/* Modern Tables */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    min-width: 800px; /* Minimum width for proper display */
}
.table thead{
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.table thead th {
  
    color: white;
    border: none;
    font-weight: 700;
    padding: 16px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.table tbody td {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14px;
    color: #475569;
}

.table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table tbody tr:hover::before {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Actions */
.btn-outline-primary,
.btn-outline-danger {
    border: 2px solid;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary {
    border-color: #6366f1;
    color: #6366f1;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Tab Controls */
.tab-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 10px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.tab-controls .search-box {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 350px;
    flex: 1;
}

.tab-controls .search-box i {
    position: absolute;
    right: 12px;
    color: #6c757d;
    font-size: 16px;
    z-index: 2;
}

.tab-controls .search-box .form-control {
    padding-right: 40px;
    padding-left: 16px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    background: white;
    transition: all 0.3s ease;
}

.tab-controls .search-box .form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    transform: translateY(-1px);
}

.tab-controls .search-box .form-control::placeholder {
    color: #6c757d;
    font-size: 14px;
}

.tab-controls .btn {
    margin-left: 15px;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Data Section */
.data-section {
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-top: 20px;
}

.data-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 32px 40px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #6366f1;
}

.data-actions {
    display: flex;
    gap: 12px;
}

/* Modern Tabs */
.modern-tabs {
    background: white;
}

.tab-buttons {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #475569;
}

.tab-btn.active {
    background: white;
    color: #6366f1;
    border-bottom: 3px solid #6366f1;
}

.tab-btn i {
    font-size: 18px;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.tab-btn.active .tab-indicator {
    width: 60%;
}

.tab-content {
    padding: 0;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern Scrollbars */
.table-container {
    padding: 40px;
    overflow: auto; /* Enable both horizontal and vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(108, 99, 255, 0.4) rgba(0, 0, 0, 0.05); /* Firefox */
}

/* WebKit Scrollbar Styling */
.table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 2px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.6), rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(108, 99, 255, 0.2);
}

.table-container::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(139, 92, 246, 0.8));
    transform: scale(1.05);
}

.table-container::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Firefox scrollbar styling */
.table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.4) rgba(0, 0, 0, 0.05);
}

/* Modern scrollbar for general use */
.modern-scroll {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 99, 255, 0.4) rgba(0, 0, 0, 0.05);
}

.modern-scroll::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.modern-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 2px;
}

.modern-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.6), rgba(139, 92, 246, 0.6));
    transform: scale(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(108, 99, 255, 0.2);
}

.modern-scroll::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(139, 92, 246, 0.8));
    transform: scale(1.05);
}

.modern-scroll::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.modern-table {
    min-width: 800px; /* Minimum width to prevent excessive compression */
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.modern-table thead th {
    color: white;
    border: none;
    font-weight: 700;
    padding: 20px 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    text-align: center;
}


.modern-table tbody td {
    padding: 20px 24px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14px;
    color: #475569;
    text-align: center;
    transition: all 0.3s ease;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-table tbody tr:hover td {
    color: #1e293b;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Modal Enhancements */
.modal {
    backdrop-filter: blur(8px);
}

.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
    opacity: 1;
}

.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal-content:hover {
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #5A53D9);
    color: white;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    padding: 24px 32px;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 24px 24px 0 0;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.btn-close:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 32px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5), rgba(241, 245, 249, 0.5));
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 32px;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.modal-footer .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Table Scrolling */
@media (max-width: 1024px) {
    .table-container {
        padding: 20px;
    }

    .modern-table {
        min-width: 700px;
    }

    .table {
        min-width: 700px;
    }

    /* Adjust scrollbar size for tablets */
    .table-container::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .modern-scroll::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .table-container {
        padding: 15px;
    }

    .modern-table {
        min-width: 600px;
    }

    .table {
        min-width: 600px;
    }

    /* Smaller scrollbar for mobile */
    .table-container::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .modern-scroll::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .modal-dialog {
        max-width: 95vw;
        margin: 1rem auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px 24px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* Adjust global scrollbar for tablets */
    *::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .table-container {
        padding: 10px;
    }

    /* Minimal scrollbar for very small screens */
    *::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .table-container::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .modern-scroll::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .table-container::-webkit-scrollbar-thumb {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modern-scroll::-webkit-scrollbar-thumb {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    *::-webkit-scrollbar-thumb {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px 20px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer .btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Modal Animation Keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(0, -50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(0, -50px) scale(0.95);
    }
}

/* Enhanced backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Form elements inside modal */
.modal .form-control {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
    transform: translateY(-1px);
}

.modal .form-select {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal .form-select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
    transform: translateY(-1px);
}

.modal .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

/* Change Password Modal Styles */
#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

#changePasswordModal .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
}

#changePasswordModal .modal-title i {
    margin-left: 10px;
    opacity: 0.9;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 50px !important; /* Make room for the toggle button */
    border-radius: 12px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.password-toggle-btn:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
}

.password-toggle-btn i {
    font-size: 16px;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid #fca5a5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: 1px solid #6ee7b7;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modal specific button styles */
.modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5A53D9);
    border: none;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #5A53D9, #4A42C3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.modal .btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    border: 2px solid rgba(108, 117, 125, 0.2);
    color: #6c757d;
    transition: all 0.3s ease;
}

.modal .btn-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.3);
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .tab-content .nav {
        display: none !important;
    }

    .table {
        font-size: 12px;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}



/* Financial Cards */
.financial-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.financial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.financial-card .card-body {
    padding: 24px;
}

.sold-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.expense-card {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.financial-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.financial-card .card-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.financial-card .card-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
}

/* Quick Add Expense Form */
.card .form-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #64748b;
}

.card .form-control,
.card .form-select {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.card .form-control:focus,
.card .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Recent Activity Tables */
.table.table-sm {
    font-size: 13px;
}

.table.table-sm th {
    padding: 8px 12px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.table.table-sm td {
    padding: 8px 12px;
    vertical-align: middle;
}

.table.table-sm tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* User Modal Styles */
.user-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #5A53D9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.detail-item span:last-child {
    color: #1e293b;
    font-weight: 500;
}

/* Modern Users Page Styles */
.card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.search-modern {
    position: relative;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-modern:focus-within {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.search-modern i {
    color: #6366f1;
    transition: color 0.3s ease;
}

.search-modern:focus-within i {
    color: #4f46e5;
}

.select-modern {
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-modern:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.select-modern:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.btn-modern {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.table-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
}

.table-modern thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.table-modern thead th {
    border: none;
    font-weight: 700;
    padding: 20px 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    text-align: center;
}

.table-modern thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.table-modern tbody td {
    padding: 20px 24px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14px;
    color: #475569;
    text-align: center;
    transition: all 0.3s ease;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.table-modern tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.table-modern tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table-modern tbody tr:hover::before {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.table-modern tbody tr:hover td {
    color: #1e293b;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Enhanced Action Buttons */
.btn-group .btn {
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-group .btn:hover::before {
    left: 100%;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Modern Badge Styles */
.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #64748b;
}

/* Modern Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Enhanced Page Header */
.page-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.page-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle-modern {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card-modern {
        margin: 0 15px;
        border-radius: 12px;
    }

    .table-modern {
        border-radius: 12px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .btn-group .btn {
        border-radius: 6px;
        margin: 0;
    }

    .search-modern,
    .select-modern {
        border-radius: 10px;
    }

    .btn-modern {
        border-radius: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .card-modern {
        margin: 0 10px;
    }

    .table-modern {
        font-size: 12px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 8px 12px;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-state i {
        font-size: 48px;
    }

    .empty-state p {
        font-size: 16px;
    }
}
