/* Dashboard Clean Design */
:root {
    /* Default Theme - Blue */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --secondary-light: #e2e8f0;
    
    /* Common colors */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Theme Colors */
[data-theme="purple"] {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: #ede9fe;
    --secondary-color: #6366f1;
    --secondary-hover: #4f46e5;
    --secondary-light: #e0e7ff;
}

[data-theme="green"] {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-light: #d1fae5;
    --secondary-color: #14b8a6;
    --secondary-hover: #0d9488;
    --secondary-light: #ccfbf1;
}

[data-theme="red"] {
    --primary-color: #ef4444;
    --primary-hover: #dc2626;
    --primary-light: #fee2e2;
    --secondary-color: #f59e0b;
    --secondary-hover: #d97706;
    --secondary-light: #fef3c7;
}

[data-theme="orange"] {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fed7aa;
    --secondary-color: #fb923c;
    --secondary-hover: #f97316;
    --secondary-light: #fed7aa;
}

[data-theme="teal"] {
    --primary-color: #14b8a6;
    --primary-hover: #0d9488;
    --primary-light: #ccfbf1;
    --secondary-color: #06b6d4;
    --secondary-hover: #0891b2;
    --secondary-light: #cffafe;
}

[data-theme="indigo"] {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary-color: #8b5cf6;
    --secondary-hover: #7c3aed;
    --secondary-light: #ede9fe;
}

[data-theme="pink"] {
    --primary-color: #ec4899;
    --primary-hover: #db2777;
    --primary-light: #fce7f3;
    --secondary-color: #f43f5e;
    --secondary-hover: #e11d48;
    --secondary-light: #ffe4e6;
}

/* Dashboard Layout */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Welcome Section Styles - Same as Admin Panel */
.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-card {
    background: transparent;
    padding: 0;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-large {
    position: relative;
    flex-shrink: 0;
}

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

.user-info-welcome {
    flex: 1;
}

.welcome-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-details-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.125rem;
}

.user-detail-item {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: flex;
    align-items: center;
}

.user-detail-item i {
    font-size: 0.625rem;
    margin-right: 0.25rem;
    color: var(--text-secondary);
}

.welcome-datetime {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Quote Section */
.quote-section {
    margin-left: calc(44px + 0.75rem);
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.quote-icon {
    display: none;
}

.quote-content {
    position: relative;
}

.quote-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

.quote-author {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
    font-weight: 500;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .user-avatar-large .avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .welcome-title {
        font-size: 1.125rem;
    }
    
    .user-detail-item {
        font-size: 0.75rem;
    }
    
    .welcome-datetime {
        font-size: 0.625rem;
    }
    
    .quote-section {
        margin-left: calc(40px + 0.75rem);
    }
    
    .quote-text {
        font-size: 0.75rem;
    }
    
    .quote-author {
        font-size: 0.625rem;
    }
}

.dashboard-container {
    max-width: 1200px; /* Smart narrow width for desktop */
    margin: 0 auto;
    padding: 1rem 1.5rem; /* Reduced top padding from 1.5rem to 1rem */
}

/* Desktop specific width adjustments */
@media (min-width: 1200px) {
    .dashboard-container {
        max-width: 1100px; /* Even more focused on large screens */
    }
}

@media (min-width: 1400px) {
    .dashboard-container {
        max-width: 1200px; /* Maintain smart width on very large screens */
    }
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-title p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-colors {
    display: flex;
    gap: 0.5rem;
}

.theme-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.theme-color:hover {
    transform: scale(1.1);
}

.theme-color.active {
    border-color: var(--text-primary);
}

.theme-color.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.theme-color[data-color="blue"] { background-color: #3b82f6; }
.theme-color[data-color="purple"] { background-color: #8b5cf6; }
.theme-color[data-color="green"] { background-color: #10b981; }
.theme-color[data-color="red"] { background-color: #ef4444; }
.theme-color[data-color="orange"] { background-color: #f97316; }
.theme-color[data-color="teal"] { background-color: #14b8a6; }
.theme-color[data-color="indigo"] { background-color: #6366f1; }
.theme-color[data-color="pink"] { background-color: #ec4899; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    border-radius: 50%;
    transform: translate(30px, -30px);
    opacity: 0.3;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* Content Cards */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.75rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.content-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.content-card-body {
    padding: 1.25rem;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 0.6875rem;
}

.quick-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.quick-link-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

/* Modern Footer Styling */
.modern-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 2rem 0;
    margin-top: auto; /* This will push footer to bottom with flexbox */
    border-top: 1px solid var(--border-color);
    width: 100%;
    position: relative;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.company-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.company-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.company-info {
    text-align: left;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
    letter-spacing: 0.5px;
}


.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    width: 100%;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile and tablet - use full width */
    .dashboard-container {
        max-width: 100% !important;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        max-width: 100% !important;
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Footer Styling */
    .modern-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .company-branding {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .company-info {
        text-align: center;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .company-logo img {
        width: 50px;
        height: 50px;
    }
    
    .company-name {
        font-size: 1.25rem;
    }
    
}