:root {
    --sidebar-width: 250px;
    --header-height: 70px;
}

.mobile-header {
    display: none;
}

body {
    background: #f8f9fa;
}

.btn-outline-primary {
    color: #6366f1;
    border-color: #6366f1;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #6366f1;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
}
.btn {
    align-items: center;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--dark {
    background: #1e293b;
    color: white;
    border: none;
}

.btn--dark:hover {
    background: #334155;
    color: white;
}

.btn--base {
    background: #6366f1;
    color: white;
    border: none;
}

.btn--base:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-1px);
}

.btn--danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn--danger:hover {
    background: #dc2626;
    color: white;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: none;
    position: fixed;
    height: calc(100vh - 2rem);
    margin: 1rem;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-logo {
    padding: 1rem;
    border-bottom: 1px solid #e5e9f2;
    background: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-logo img {
    height: 70px;
}

.profile-section {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e9f2;
    background: white;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #5c6c7f;
    position: relative;
}

.profile-avatar .pro-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4CAF50;
    color: white;
    padding: 0.3px 4px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 500;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.profile-info {
    margin-left: 1rem;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.profile-email {
    font-size: 0.875rem;
    color: #5c6c7f;
    word-break: break-all;
}

.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 9999;
    transform: translateX(-60%);
}

.settings-dropdown:hover .settings-dropdown-content {
    display: block;
}

.settings-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 9999;
    transform-origin: center;
}

.settings-item:hover {
    background: rgba(104, 163, 249, 0.1);
    box-shadow: 0 4px 15px rgba(104, 163, 249, 0.1);
    color: #68a3f9;
}

.settings-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.settings-item:hover i {
    transform: translateY(-2px) scale(1.1);
    color: #68a3f9;
}

.settings-item span {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-item:hover span {
    transform: translateX(5px);
}

.settings-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(104, 163, 249, 0.05);
    transition: all 0.3s ease;
    z-index: -1;
}

.settings-item:hover::before {
    width: 100%;
}

/* Add ripple effect on click */
.settings-item:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Enhance the hover state with subtle glow */
.settings-item:hover {
    text-shadow: 0 0 1px rgba(104, 163, 249, 0.3);
}

.settings-dropdown .btn {
    padding: 1px;
}

.settings-dropdown .btn i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.settings-dropdown:hover .btn i {
    animation: cogSpin 4s linear infinite;
}

@keyframes cogSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.dashboard-menu {
    padding: 1rem 0;
    background: white;
    border-radius: 0 0 15px 15px;
}

.dashboard-menu-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    color: #5c6c7f;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-left: 3px solid transparent;
    transform-origin: left center;
}

.dashboard-menu-item:hover,
.dashboard-menu-item.active {
    background: rgba(104, 163, 249, 0.1);
    color: #68a3f9;
    box-shadow: 0 4px 15px rgba(104, 163, 249, 0.1);
}

.dashboard-menu-item i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.dashboard-menu-item:hover i {
    transform: translateY(-2px) scale(1.1);
    color: #68a3f9;
}

.dashboard-menu-item span {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-menu-item:hover span {
    transform: translateX(5px);
}

.dashboard-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(104, 163, 249, 0.05);
    transition: all 0.3s ease;
    z-index: -1;
}

.dashboard-menu-item:hover::before {
    width: 100%;
}

.dashboard-menu-item.active {
    animation: menuPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes menuPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Enhance the hover state with subtle glow */
.dashboard-menu-item:hover {
    text-shadow: 0 0 1px rgba(104, 163, 249, 0.3);
}

/* Add ripple effect on click */
.dashboard-menu-item:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.dashboard-menu-item .badge {
    position: absolute;
    right: 1.5rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    background-color: #6366f1;
}

/* Header Styles */
.dashboard-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.dashboard-header__content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.dashboard-header__right {
    display: flex;
    align-items: center;
}

/* Welcome Message Styles */
.welcome-message h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breadcrumb-wrapper .page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #3b82f6;
}

.breadcrumb-item i {
    font-size: 1rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding-right: 0.5rem;
    color: #94a3b8;
}

.breadcrumb-item.active {
    color: #3b82f6;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .dashboard-header__content {
        padding: 1.25rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    .dashboard-header__right {
        justify-content: flex-end;
    }

    .welcome-message h2 {
        font-size: 1.5rem;
    }

    .welcome-message p {
        font-size: 0.875rem;
    }

    .breadcrumb-wrapper .page-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .dashboard-header__content {
        padding: 0.5rem;
    }

    .dashboard-header {
        margin: 0.75rem;
        margin-bottom: 0;
    }

    .welcome-message h2 {
        font-size: 1.25rem;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .breadcrumb-wrapper .page-title {
        font-size: 1.125rem;
    }
}

/* Mobile Styles */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e9f2;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.hamburger-menu {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: #f1f5f9;
}

.hamburger-menu i {
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Overlay is now defined in the mobile sidebar styles at the end of the file */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    padding: 0.5rem;
}

.mobile-nav-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: #5c6c7f;
    text-decoration: none;
    font-size: 0.75rem;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item.active {
    color: #68a3f9;
}

.mobile-nav-item .badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 10px;
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card.pink {
    background: #F7D9E3;
}

.stat-card.blue {
    background: #CBF0F4;
}

.stat-card.green {
    background: #CDD8A2;
}

.stat-card.purple {
    background: #CBD4F4;
}

.stat-card__header {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #181c32!important;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card__title i {
    font-size: 1.25rem;
    opacity: 0.8;
}

.stat-card__value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-card__currency {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c3e50;
}

.stat-card__amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-card__subtitle {
    font-size: 0.875rem;
    color: #5c6c7f;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Enhanced Stat Card Styles */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    font-family: "Line Awesome Free";
    font-weight: 900;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card:hover::after {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.15;
}

/* Card specific icon content */
.stat-card.green::after {
    content: '\f017'; /* la-clock */
    color: #61755a;
}

.stat-card.blue::after {
    content: '\f15c'; /* la-file-alt */
    color: #4d79ff;
}

.stat-card.pink::after {
    content: '\f071'; /* la-exclamation-triangle */
    color: #ff4d94;
}

.stat-card.purple::after {
    content: '\f555'; /* la-wallet */
    color: #9f4dff;
}

/* Adjust header position for icon */
.stat-card__header {
    position: relative;
    z-index: 1;
}

/* Responsive styles for stat card icons */
@media (max-width: 991px) {
    .stat-card::after {
        width: 100px;
        height: 100px;
        font-size: 100px;
        right: -15px;
        bottom: -15px;
    }
}

@media (max-width: 576px) {
    .stat-card::after {
        width: 80px;
        height: 80px;
        font-size: 80px;
        right: -10px;
        bottom: -10px;
        opacity: 0.08;
    }

    .stat-card:hover::after {
        transform: rotate(0deg) scale(1.05);
        opacity: 0.12;
    }
}

@media (max-width: 360px) {
    .stat-card::after {
        width: 60px;
        height: 60px;
        font-size: 60px;
        right: -5px;
        bottom: -5px;
    }
}

/* Header Components */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu__button {
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s;
}

.user-menu__button:hover {
    color: #68a3f9;
}

.user-menu__avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e5e9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6c7f;
}

/* Notification Styles */
.notification-menu {
    position: relative;
    margin-right: 1rem;
}

.notification-button {
    background: none;
    border: none;
    padding: 0.5rem;
    position: relative;
    color: #5c6c7f;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-button:hover {
    color: #68a3f9;
    background: none;
}

.notification-button i {
    font-size: 1.5rem;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #F44336;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    transform-origin: top right;
    transition: all 0.3s;
}

.notification-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e9f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.notification-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e9f2;
    transition: all 0.3s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(104, 163, 249, 0.1);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 1.25rem;
    color: #5c6c7f;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-size: 0.875rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.notification-time {
    font-size: 0.75rem;
    color: #5c6c7f;
}

.notification-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #e5e9f2;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 2;
}

.dashboard-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 1rem);
    padding: 1rem 2rem 2rem 1rem;
}

.notification-footer a {
    color: #68a3f9;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.notification-footer a:hover {
    color: #3d84f7;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.badge--purple {
    background: linear-gradient(135deg, #a855f7 0%, #8600fb 100%);
    color: #fff;
    border: none;
}

.badge--purple:hover {
    background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(168, 85, 247, 0.2);
}

.badge--primary {
    background: linear-gradient(135deg, #6366f1 0%, #4634ff 100%);
    color: #fff;
    border: none;
}

.badge--primary:hover {
    background: linear-gradient(135deg, #4634ff 0%, #6366f1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(70, 52, 255, 0.2);
}

.badge--success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
}

.badge--success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

.badge--warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    border: none;
}

.badge--warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
}

.badge--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
}

.badge--danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.badge--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.badge--info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.badge--dark {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: #fff;
    border: none;
}

.badge--dark:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(55, 65, 81, 0.2);
}

/* Mobile adjustments for badges */
@media (max-width: 576px) {
    .badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        font-weight: 500;
    }

    .notification-menu {
        position: relative;
        margin-right: 0rem;
    }
    .notification-dropdown {
        width: 200px;
    }

    .settings-dropdown-content {
        display: none;
        position: absolute;
        background: white;
        min-width: 150px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 8px;
        z-index: 1000;
        left: 50%;
        transform: translateX(-90%);
    }
    
    .settings-item {
        font-size: 15px;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .mobile-header {
        display: block;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .dashboard-content {
        margin-left: 0;
        padding: 60px 0.5rem 4rem 0.5rem;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    .dashboard-sidebar {
        display: none;
    }

    .mobile-header .hamburger-menu {
        display: block;
    }

    .mobile-header .user-menu {
        position: relative;
    }

    .mobile-header .settings-dropdown-content {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 150px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 8px;
        z-index: 1000;
        display: none;
    }

    .mobile-header .settings-dropdown-content.show {
        display: block;
    }

    .mobile-header .user-menu__button {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-header .user-menu__avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #e5e9f2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #5c6c7f;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0;
        margin-bottom: 0.75rem;
        width: 100%;
    }

    .stat-card {
        padding: 0.75rem;
        border-radius: 10px;
        width: 100%;
        min-width: 0;
    }

    .stat-card__title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
        gap: 0.25rem;
    }

    .stat-card__title i {
        font-size: 0.875rem;
    }

    .stat-card__value {
        margin-bottom: 0.25rem;
        gap: 0.125rem;
    }

    .stat-card__currency {
        font-size: 0.7rem;
    }

    .stat-card__amount {
        font-size: 1.125rem;
    }

    .stat-card__subtitle {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .mobile-header {
        height: 70px;
        padding: 0.5rem;
    }

    .mobile-bottom-nav {
        padding: 0.25rem;
        height: auto;
    }

    .mobile-nav-items {
        gap: 0.25rem;
    }

    .mobile-nav-item {
        padding: 0.25rem;
        font-size: 0.65rem;
    }

    .mobile-nav-item i {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }

    .mobile-logo img {
        height: 30px;
    }

    .user-menu__avatar {
        width: 30px;
        height: 30px;
    }

    .user-menu__button {
        padding: 0.375rem;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 50px;
    }

    .dashboard-content {
        padding: 55px 0.375rem 3.5rem 0.375rem;
    }

    .dashboard-stats {
        margin-bottom: 0.5rem;
    }

    .stat-card {
        padding: 0.625rem;
        border-radius: 8px;
    }

    .stat-card__title {
        font-size: 0.9rem;
    }

    .stat-card__title i {
        font-size: 0.8rem;
    }

    .stat-card__amount {
        font-size: 1rem;
    }

    .stat-card__subtitle {
        font-size: 0.65rem;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .mobile-header .hamburger-menu {
        display: none;
    }

    .mobile-bottom-nav {
        padding: 0.25rem 0.125rem;
    }

    .mobile-nav-item {
        padding: 0.25rem 0.125rem;
        font-size: 0.9rem;
    }

    .mobile-nav-item i {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }

    .dashboard-header h2 {
        font-size: 1.125rem;
    }
}

@media (max-width: 360px) {
    .dashboard-content {
        padding: 52px 0.25rem 3.25rem 0.25rem;
    }

    .dashboard-stats {
        gap: 0.25rem;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .stat-card__title {
        font-size: 0.65rem;
    }

    .stat-card__amount {
        font-size: 0.875rem;
    }

    .stat-card__subtitle {
        font-size: 0.6rem;
    }

    .mobile-nav-item {
        font-size: 0.55rem;
    }

    .mobile-nav-item i {
        font-size: 0.875rem;
    }
}

/* Table Styles */
.table-modern {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.table-modern thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.table-modern th {
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
    white-space: nowrap;
}

.table-modern td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Amount Column */
.table-modern .amount-column {
    font-weight: 600;
    color: #0f172a;
}

/* Date Column */
.table-modern .date-column {
    color: #64748b;
    font-size: 0.813rem;
}

/* ID/Number Column */
.table-modern .id-column {
    font-family: monospace;
    color: #6366f1;
    font-weight: 500;
}

/* Empty State */
.table-empty-state {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    background: #f8fafc;
    border-radius: 12px;
}

.table-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

/* Loading State */
.table-loading {
    position: relative;
    min-height: 200px;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #64748b;
}

/* Responsive Table */
@media (max-width: 991px) {
    .table-responsive-modern {
        overflow: visible;
    }

    .table-modern {
        min-width: auto;
        border-radius: 0;
    }

    .table-modern thead {
        display: none;
    }

    .table-modern tbody tr {
        display: block;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .table-modern tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.875rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .table-modern tbody td:last-child {
        border-bottom: none;
    }

    .table-modern tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
    }

    .table-modern .amount-column,
    .table-modern .id-column,
    .table-modern .date-column {
        font-size: 0.875rem;
    }

    .table-modern td[data-label="Action"] {
        justify-content: flex-start;
    }

    .table-modern td[data-label="Action"]::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .table-modern {
        background: none;
        box-shadow: none;
    }

    .mobile-bottom-nav.active {
        display: flex; /* or block depending on layout */
    }

    .table-modern tbody tr {
        margin-bottom: 0.75rem;
    }

    .table-modern tbody td {
        padding: 0.75rem;
        font-size: 0.813rem;
    }

    .table-modern tbody td::before {
        font-size: 0.813rem;
    }

    .table-empty-state {
        padding: 1.5rem 1rem;
    }

    .table-empty-state i {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
.table-responsive-modern::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-modern::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.table-responsive-modern::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.table-responsive-modern::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.card-header {
    background: none;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e9f2;
}

.card-body {
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    overflow: hidden;
}

.card-title {
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
}

.table {
    margin: 0;
}

.table th {
    font-weight: 500;
    background: #f8f9fa;
    color: #5c6c7f;
    padding: 1rem 1.5rem;
    border-top: none;
}

.table td {
    padding: 1rem 1.5rem;
    color: #2c3e50;
    vertical-align: middle;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e5e9f2;
    padding: 1rem 1.5rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

.alert {
    border: none;
    border-radius: 10px;
}

/* Escrow Card Styles */
.escrow-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.escrow-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.escrow-card__header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.escrow-card__title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

.escrow-card__body {
    padding: 1.25rem;
}

/* Escrow Info Styles */
.escrow-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.escrow-info__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.escrow-info__label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.escrow-info__value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Escrow Actions */
.escrow-actions {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* Escrow Chat Styles */
.escrow-chat {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.escrow-chat__header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.escrow-chat__body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.escrow-chat__footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.escrow-chat__input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.escrow-chat__input .form-control {
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.escrow-chat__input button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    color: #181c32!important;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.escrow-chat__input button:hover {
    transform: scale(1.05);
    background: var(--primary-color-hover);
}

/* Message Styles */
.escrow-message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

.escrow-message--sent {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.escrow-message--received {
    background: #f8f9fa;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.escrow-message__sender {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.escrow-message__content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.escrow-message__time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.escrow-message--sent .escrow-message__time {
    text-align: right;
}

/* Custom Scrollbar */
.escrow-chat__body::-webkit-scrollbar {
    width: 6px;
}

.escrow-chat__body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.escrow-chat__body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.escrow-chat__body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .escrow-interface{
        padding:1rem;
    }

    .escrow-info {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .escrow-chat {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .escrow-card__header {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .escrow-info {
        grid-template-columns: 1fr;
    }
    
    .escrow-message {
        max-width: 90%;
    }
    
    .escrow-actions {
        justify-content: center;
    }
}

/* Enhanced Table Styles */
.table-modern {
    --table-header-bg: #f2f3f5;
    --table-row-hover: #f1f5f9;
    --table-border: #e2e8f0;
    
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}


.table-modern th {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
    white-space: nowrap;
}

.table-modern td {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid var(--table-border);
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: var(--table-row-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Enhanced Column Styles */
.table-modern .id-column {
    font-family: 'Roboto Mono', monospace;
    color: #6366f1;
    font-weight: 500;
    font-size: 0.813rem;
}

.table-modern .amount-column {
    font-weight: 500;
    color: #0f172a;
}

.table-modern .amount-column small {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.table-modern .badge {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Enhanced Empty State */
.table-empty-state {
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    width: 100%;
}

.table-empty-state i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.table-empty-state p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    .table-modern tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .table-modern td {
        padding: 0.5rem;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table-modern td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
    }

    .table-modern td[data-label="Action"] {
        justify-content: flex-end;
    }

    .table-modern td[data-label="Action"]::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .dashboard-header__right {
        display: none;
    }
    .escrow-interface {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .table-modern td {
        font-size: 0.813rem;
    }

    .table-empty-state {
        padding: 2rem 1rem;
    }

    .table-empty-state i {
        font-size: 2.5rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-item {
    margin: 0 0.25rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f8fafc;
    color: #1e293b;
}

.page-item.active .page-link {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.page-item.disabled .page-link {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.813rem;
    }
}

/* Mobile Sidebar Styles */
@media (max-width: 991px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: all 0.3s ease;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 60px; /* Account for mobile header height */
        display: block; /* Override the display: none from earlier */
    }
    
    .dashboard-sidebar.show {
        left: 0;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .overlay.show {
        display: block;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Mobile Bottom Navigation - Keep for very small devices */
@media (max-width: 576px) {
    .mobile-bottom-nav {
        display: block;
    }
}

.escrow-card__header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.escrow-card__title {
    font-weight: 500;
    color: #2d3748;
    margin: 0;
}

.escrow-card__body {
    padding: 1.5rem;
}

/* Step indicator styles */
.escrow-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.escrow-step__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.escrow-step__number.active {
    background: #6366f1;
    color: white;
}

.escrow-step__number.completed {
    background: #10b981;
    color: white;
}

.escrow-step__divider {
    width: 3rem;
    height: 2px;
    background: #e2e8f0;
}

/* Form Styles */

.input-group {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.input-group-prepend {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border: none;
    color: #64748b;
}

.input-group-text i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.form-control, .form-select {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #2d3748;
}

.form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: none;
}

.details-input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 120px;
    padding: 0.75rem;
    width: 100%;
    resize: vertical;
}

/* Transaction Details */
.transaction-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem;
}

.transaction-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.transaction-info__label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.transaction-info__value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.transaction-info__value .value {
    font-weight: 500;
    color: #1e293b;
}

.transaction-info__value .currency {
    color: #64748b;
    font-size: 0.875rem;
}

/* Info Card */
.escrow-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.escrow-info-card__header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.escrow-info-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.escrow-info-card__title i {
    font-size: 1.25rem;
    color: #6366f1;
}

.escrow-info-card__body {
    padding: 1.25rem;
}

.escrow-step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.escrow-step-item:last-child {
    margin-bottom: 0;
}
.escrow-step-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.escrow-step-item__content h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 0.25rem;
}

.escrow-step-item__content p {
    font-size: 0.813rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.btn--sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}