
/* Dashboard Fluid Layout */
.dashboard-fluid-container {
    width: 100%;
    padding: 0;
}

.dashboard-layout-wrapper {
    display: flex;
    min-height: calc(100vh - 80px); /* Adjust based on header height */
    position: relative;
}

.dashboard-sidebar-container {
    width: 280px;
    flex-shrink: 0;
    background: #252a37; /* Updated to blue */
    border-right: none;
    transition: all 0.3s;
    z-index: 99;
}

/* Reset existing sidebar styles to fit the full height */
.dashboard-sidebar {
    height: 100%;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-top: 20px;
}

.dashboard-main-content {
    flex-grow: 1;
    width: calc(100% - 280px);
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar Styling Updates */
.dashboard-user .user-content span, 
.dashboard-user .user-content .name {
    color: #fff !important;
}

.user-dashboard-tab li a {
    color: rgba(255,255,255,0.8) !important;
    padding: 12px 20px;
    display: block;
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.user-dashboard-tab li a i {
    margin-right: 10px;
    font-size: 1.2em;
}

.user-dashboard-tab li a:hover, 
.user-dashboard-tab li a.active {
    background: #fff !important;
    color: #a6181d !important;
    padding-left: 25px;
}

/* Widget Curve Styles */
.widget-curve {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    background: #fff;
    height: 100%;
}
.widget-curve:hover {
    transform: translateY(-5px);
}
.widget-curve .card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    border-radius: 15px;
}
.widget-curve-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.curve-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    /* Create the curve shape */
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    opacity: 0.15;
    z-index: -1;
    transform: translateX(30%);
}

@media (max-width: 991px) {
    .dashboard-sidebar-container {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        height: 100vh;
    }
    .dashboard-sidebar-container.active {
        left: 0;
    }
    .dashboard-main-content {
        width: 100%;
        margin-left: 0;
    }
}

/* Preloader Custom Styles */
#preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.preloader-content {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    max-width: 80px;
    max-height: 80px;
    z-index: 2;
    animation: pulse 2s infinite;
}

.preloader-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid transparent;
    border-top-color: #a6181d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.preloader-circle:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(0, 98, 200, 0.5);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
