/* Smile Capital Sales Activity CRM - AllWhite Visual Identity Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-brand-dark: #0B192C;
    --color-brand-navy: #1E3E62;
    --color-brand-blue: #008DDA;
    --color-brand-cyan: #41C9E2;
    --color-brand-light: #F8FAFC;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-success-bg: #ECFDF5;
    --color-warning: #F59E0B;
    --color-warning-bg: #FFFBEB;
    --color-danger: #EF4444;
    --color-danger-bg: #FEF2F2;
    --color-info: #3B82F6;
    --color-info-bg: #EFF6FF;

    /* Neutrals */
    --color-surface: #FFFFFF;
    --color-surface-hover: #F1F5F9;
    --color-border: #E2E8F0;
    --color-border-subtle: #F1F5F9;
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-text-light: #94A3B8;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(11, 25, 44, 0.05);
    --shadow-sm: 0 2px 8px rgba(11, 25, 44, 0.06);
    --shadow-md: 0 6px 18px rgba(11, 25, 44, 0.08);
    --shadow-lg: 0 12px 30px rgba(11, 25, 44, 0.12);
    --shadow-glow: 0 0 20px rgba(0, 141, 218, 0.35);

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: #F4F6F9;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-brand-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-brand-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-brand-navy);
}

/* App Container */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #F8FAFC;
}

/* Sidebar (Desktop) */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--color-brand-dark) 0%, var(--color-brand-navy) 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-brand-blue) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 20px;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 141, 218, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-brand-cyan);
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    padding: 12px 12px 6px;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateX(3px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 141, 218, 0.9) 0%, rgba(30, 62, 98, 0.8) 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--color-brand-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-meta {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-tag {
    font-size: 11px;
    color: var(--color-brand-cyan);
    font-weight: 500;
}

.logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.15);
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* Topbar */
.topbar {
    height: 70px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-brand-dark);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-navy) 100%);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 141, 218, 0.3);
    transition: var(--transition);
}

.action-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 141, 218, 0.45);
    transform: translateY(-1px);
}

/* Content Container */
.page-content {
    flex: 1;
    padding: 28px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* Floating Action Button (Mobile & Quick Access) */
.fab-new-activity {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-brand-blue) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 141, 218, 0.45);
    border: none;
    cursor: pointer;
    font-size: 26px;
    z-index: 1000;
    transition: var(--transition);
}

.fab-new-activity:hover {
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 12px 30px rgba(0, 141, 218, 0.6);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    z-index: 990;
    justify-content: space-around;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-nav-item.active {
    color: var(--color-brand-blue);
    font-weight: 700;
}

.mobile-nav-icon {
    font-size: 20px;
}

/* Responsive Rules */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .topbar {
        padding: 0 16px;
    }

    .page-content {
        padding: 16px;
        padding-bottom: 90px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .fab-new-activity {
        bottom: 80px;
        right: 18px;
    }
}
