/* Dashboard Custom Styles - Match Homepage3 Design */

/* Full Width Dashboard Layout */
.dashboard-container-full {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dashboard-wrapper-full {
    display: flex !important;
    min-height: calc(100vh - 100px);
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.dashboard-sidebar-full {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex: 0 0 280px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    background: #ffffff;
    border-right: 1px solid rgba(102, 126, 234, 0.1);
    padding: 30px 20px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    box-sizing: border-box;
}

.dashboard-sidebar-full .dashboard-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    top: 0;
}

.dashboard-content-full {
    flex: 1 1 auto !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
    width: calc(100% - 280px) !important;
    min-width: 0;
    max-width: calc(100% - 280px);
    padding: 40px;
    background: #f8faff;
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .dashboard-sidebar-full {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        flex: 0 0 240px !important;
    }
    .dashboard-content-full {
        width: calc(100% - 240px) !important;
        max-width: calc(100% - 240px) !important;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper-full {
        flex-direction: column;
    }
    .dashboard-sidebar-full {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    }
    .dashboard-content-full {
        width: 100%;
        padding: 20px;
    }
}

/* Sidebar Active State */
.dashboard-sidebar-full .nav-item.active .nav-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-left: 3px solid #667eea;
}

.dashboard-sidebar-full .nav-item.active .nav-link i {
    color: #667eea;
}

/* Dashboard Header */
.dashboard-header {
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(102,126,234,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.dashboard-header .container {
    position: relative;
    z-index: 1;
}

/* Sidebar Navigation */
.dashboard-sidebar {
    transition: all 0.3s ease;
}

.dashboard-sidebar:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.12) !important;
}

.nav-link {
    position: relative;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
    color: #667eea !important;
    transform: translateX(5px);
}

.nav-link:hover i {
    color: #667eea !important;
    transform: scale(1.1);
}

.nav-item.active .nav-link {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    color: #667eea !important;
}

.nav-item.active .nav-link i {
    color: #667eea !important;
}

/* Statistics Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

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

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Action Cards */
.action-card {
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.action-card:hover::before {
    left: 0;
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
}

.action-icon {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-title,
.action-description {
    position: relative;
    z-index: 1;
}

/* Recent Generations */
.generation-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.generation-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generation-item:hover::after {
    opacity: 1;
}

.generation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

.generation-thumb {
    transition: all 0.3s ease;
}

.generation-item:hover .generation-thumb {
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    animation: fadeIn 0.5s ease;
}

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

/* Section Headers */
.section-header {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .dashboard-sidebar {
        margin-bottom: 30px;
        position: relative !important;
        top: 0 !important;
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .action-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 30px 0 !important;
    }

    .welcome-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .generations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Scrollbar Styling */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

