/* Professional Dashboard Styles - Modern Trendy Redesign */

:root {
    /* Modern Color Palette - Indigo/Violet Theme */
    --bg-sidebar: #0f172a;
    /* Slate 900 - Darker, richer */
    --bg-main: #f8fafc;
    /* Slate 50 - Very light cool gray */
    --bg-card: #ffffff;
    /* White */

    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --text-sidebar: #94a3b8;
    /* Slate 400 */
    --text-sidebar-hover: #f1f5f9;
    /* Slate 100 */

    --accent-color: #4f46e5;
    /* Indigo 600 - Vibrant & Professional */
    --accent-hover: #4338ca;
    /* Indigo 700 */
    --accent-light: #e0e7ff;
    /* Indigo 100 */

    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Spacing */
    --sidebar-width: 280px;
    /* Slightly wider for better breathing room */
    --header-height: 72px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    /* Crisper text */
}

.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    /* Subtle separation */
    z-index: 20;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 32px;
    /* No border, just space */
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    padding: 32px 16px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    color: var(--text-sidebar);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-sidebar-hover);
}

.nav-item.active {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /* Squircle */
    background: linear-gradient(135deg, var(--accent-color), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-info h4 {
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-sidebar);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Top Tiles Section */
.top-tiles-section {
    padding: 32px 40px;
    background-color: var(--bg-main);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.tile {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.tile.active {
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px var(--accent-color), var(--shadow-md);
}

.tile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent, var(--accent-light));
    opacity: 0.1;
    border-radius: 0 0 0 100%;
    pointer-events: none;
}

.tile-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--accent-color);
    background-color: var(--accent-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.tile-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.tile-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Center Content Page */
.content-area {
    flex: 1;
    padding: 0 40px 40px 40px;
    overflow-y: auto;
}

.content-card {
    background-color: var(--bg-card);
    border-radius: 24px;
    /* More rounded */
    padding: 40px;
    box-shadow: var(--shadow-md);
    min-height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.action-btn {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.action-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.placeholder-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Empty State Styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    height: 100%;
}

.empty-icon {
    font-size: 5rem;
    color: var(--accent-light);
    /* Softer color */
    margin-bottom: 32px;
    background-color: #f8fafc;
    padding: 32px;
    border-radius: 50%;
}

.empty-state h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.empty-state .sub-text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 16px;
}

.action-btn.secondary {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.action-btn.secondary:hover {
    background-color: #f8fafc;
    color: var(--text-primary);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.user-info {
    display: none;
}

.sidebar-header {
    justify-content: center;
    padding: 0;
}


.user-avatar {
    margin-right: 0;
}

.content-area {
    padding: 0 20px 20px 20px;
}

.top-tiles-section {
    padding: 20px;
}
}