/* Modern Dashboard Styles */

:root {
    --primary-color: #0173bd;
    --secondary-color: #20a4e5;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --info-color: #0173bd;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 250px;
    --topbar-height: 70px;
}

/* Clean text colors - removed forced white text */

/* Modern Sidebar */
.modern-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1a1a1a;
    height: 100vh;
    position: fixed;
    width: var(--sidebar-width);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.sidebar-brand i {
    font-size: 1.8rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.sidebar-nav {
    padding: 1.5rem 0;
    flex-grow: 1;
}

.sidebar-nav .nav-link {
    color: #6b7280;
    border-radius: 0.75rem;
    margin: 0.25rem 1rem;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.sidebar-nav .nav-link:hover::before {
    left: 100%;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: linear-gradient(45deg, rgba(1, 115, 189, 0.12), rgba(32, 164, 229, 0.12));
    color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(1, 115, 189, 0.18);
}

.sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Modern Topbar */
.modern-topbar {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--topbar-height);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.search-container {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Content Wrapper */
.content-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
    background: transparent;
    transition: all 0.3s ease;
}

/* Dashboard Background - Clean design with background image */
.dashboard-background {
    background: url('/assets/img/home/background.png') center center / cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.dashboard-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.dashboard-background > * {
    position: relative;
    z-index: 1;
}

/* Modern Statistics Cards */
.modern-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.modern-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.stat-icon:hover::before {
    left: 100%;
}

.stat-primary {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
    color: var(--primary-color);
}

.stat-success {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(76, 201, 240, 0.2));
    color: var(--success-color);
}

.stat-warning {
    background: linear-gradient(135deg, rgba(248, 150, 30, 0.1), rgba(248, 150, 30, 0.2));
    color: var(--warning-color);
}

.stat-danger {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.1), rgba(247, 37, 133, 0.2));
    color: var(--danger-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #1a1a1a;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Modern Chart Container */
.modern-chart-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(1, 115, 189, 0.9), rgba(32, 164, 229, 0.7));
    pointer-events: none;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.chart-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.25rem;
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.chart-btn.active {
    background: linear-gradient(45deg, #0173bd, #20a4e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(1, 115, 189, 0.3);
}

/* Enhanced card styling with glassmorphism */
.dashboard-background .card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
}

.dashboard-background .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-background .card-header {
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0 !important;
}

.dashboard-background .card-body {
    color: #1a1a1a;
}

.dashboard-background .card-title {
    color: #1a1a1a !important;
    font-weight: 600;
}

.dashboard-background .card-text {
    color: #6b7280 !important;
}

/* Enhanced Dashboard Components */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25) !important;
}

.card {
    border-radius: 20px !important;
    overflow: hidden;
}

.icon-shape {
    border-radius: 16px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-shape::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;
}

.icon-shape:hover::before {
    left: 100%;
}

.avatar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    background: linear-gradient(135deg, #0173bd 0%, #20a4e5 100%);
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(1, 115, 189, 0.28);
}

/* Enhanced Statistics Cards */
.stats-card {
    position: relative;
    overflow: hidden;
    border: none !important;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0173bd, #20a4e5, #8fd8ff);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced Action Buttons */
.action-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-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;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Dashboard Button Styles */
.dashboard-background .btn-primary {
    background: linear-gradient(45deg, #0173bd, #20a4e5);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 115, 189, 0.3);
}

.dashboard-background .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 115, 189, 0.38);
}

.dashboard-background .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-background .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* List Group Items */
.dashboard-background .list-group-item {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    color: #1a1a1a !important;
}

.dashboard-background .list-group-item:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-background .list-group-item h6 {
    color: #1a1a1a !important;
    font-weight: 600;
}

.dashboard-background .list-group-item small {
    color: #6b7280 !important;
}

/* Badge Styling */
.dashboard-background .badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
}

.dashboard-background .badge.bg-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
}

.dashboard-background .badge.bg-primary {
    background: linear-gradient(45deg, #0173bd, #20a4e5) !important;
    color: white !important;
}

.chart-placeholder {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 115, 189, 0.04) !important;
    border: 2px dashed rgba(1, 115, 189, 0.2);
}

.chart-placeholder-icon {
    color: #0173bd;
    opacity: 0.5;
}

/* Welcome Section */
.dashboard-background .modern-chart-container h2 {
    color: #1a1a1a !important;
}

.dashboard-background .modern-chart-container h4 {
    color: #1a1a1a !important;
}

.dashboard-background .modern-chart-container .text-muted {
    color: #6b7280 !important;
}

/* Enhanced Table Styling */
.dashboard-background .table {
    color: #1a1a1a !important;
}

.dashboard-background .table thead th {
    background: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.dashboard-background .table tbody tr {
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.dashboard-background .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-background .table tbody td {
    border: none !important;
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: #1a1a1a;
}

/* Enhanced Avatar Styling */
.dashboard-background .avatar {
    position: relative;
    overflow: hidden;
}

.dashboard-background .avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.dashboard-background .avatar:hover::before {
    transform: translateX(100%);
}

/* Pulse Animation for Icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.dashboard-background .icon-shape:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Removed floating particles for cleaner design */

/* Responsive Design */
@media (max-width: 991px) {
    .modern-sidebar {
        width: 70px;
        padding: 0;
    }
    
    .sidebar-brand span,
    .sidebar-nav .nav-link span {
        display: none;
    }
    
    .sidebar-brand i,
    .sidebar-nav .nav-link i {
        font-size: 1.5rem;
        margin: 0;
        text-align: center;
    }
    
    .sidebar-nav .nav-link {
        margin: 0.25rem 0.5rem;
        padding: 0.75rem;
        text-align: center;
    }
    
    .content-wrapper {
        margin-left: 70px;
    }
    
    .modern-topbar {
        left: 70px;
    }
    
    .search-container {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .modern-sidebar {
        position: fixed;
        left: -250px;
        z-index: 1000;
        width: 250px;
    }
    
    .modern-sidebar.show {
        left: 0;
    }
    
    .content-wrapper {
        margin-left: 0;
    }
    
    .modern-topbar {
        left: 0;
        padding: 1rem;
    }
    
    .search-container {
        width: 200px;
    }
    
    .user-name {
        display: none;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .modern-stat-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .search-container {
        width: 150px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0173bd 0%, #20a4e5 100%) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0173bd 0%, #20a4e5 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0173bd 0%, #20a4e5 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f8961e 0%, #f9b24f 100%) !important;
}
