/* Demo Page Styles */
:root {
    --primary-color: #2563eb;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --light-gray: #f9fafb;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hide mobile menu elements on desktop */
.mobile-menu {
    display: none;
}

.mobile-overlay {
    display: none;
}


.mobile-language-dropdown {
    display: none;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    z-index: 1001;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    min-width: 85px;
    justify-content: space-between;
}

.language-btn:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.language-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.875rem;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--light-gray);
}

.language-option:focus {
    background: var(--light-gray);
    outline: none;
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.language-option.active:hover {
    background: var(--accent-color);
}

.language-option .flag {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.language-option span:not(.flag) {
    font-weight: 500;
}

/* Button Styles */
.btn-icon {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.btn-icon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header .container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    .nav-brand {
        flex: 1;
        max-width: calc(100% - 120px); /* Leave space for actions and menu */
    }
    
    .nav-brand span {
        font-size: 1.1rem; /* Slightly smaller on mobile */
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Hide language selector and user profile on mobile header */
    .nav-actions .language-selector,
    .nav-actions .user-profile {
        display: none !important;
    }
    
    /* Keep notification button visible with proper spacing */
    .nav-actions .btn-icon {
        display: flex;
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        padding: 0.4rem;
        margin-left: 0.25rem;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        display: block;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        background: var(--light-gray);
    }
    
    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--primary-color);
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background: var(--border-color);
        color: var(--text-primary);
    }
    
    .mobile-nav-links {
        padding: 1rem 0;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: var(--light-gray);
        color: var(--primary-color);
        padding-left: 2rem;
    }
    
    .mobile-nav-link i {
        width: 20px;
        text-align: center;
    }
    
    .mobile-menu-footer {
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--border-color);
        background: var(--light-gray);
    }
    
    .mobile-user-profile {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: white;
        border-radius: 6px;
        border: 1px solid var(--border-color);
    }
    
    .mobile-user-profile img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }
    
    .mobile-language-selector {
        margin-bottom: 2rem;
        position: relative;
    }
    
    .mobile-language-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
        border: 1px solid var(--border-color);
        padding: 0.75rem;
        border-radius: 6px;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.875rem;
    }
    
    .mobile-language-btn:hover {
        border-color: var(--primary-color);
    }
    
    .mobile-language-dropdown {
        display: none;
    }
    .mobile-language-dropdown.active {
        display: block;
        position: static;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        max-height: 300px;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        z-index: 1010;
    }
    
    /* Alternative positioning for when dropdown is near bottom of screen */
    .mobile-language-selector.dropdown-upward .mobile-language-dropdown {
        top: auto;
        bottom: calc(100% + 8px);
        transform: translateY(10px);
    }
    
    .mobile-language-selector.dropdown-upward .mobile-language-dropdown.active {
        transform: translateY(0);
    }
    
    .mobile-language-option {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px solid var(--light-gray);
        font-size: 0.875rem;
        justify-content: space-between;
    }
    
    .mobile-language-option:last-child {
        border-bottom: none;
    }
    
    .mobile-language-option:hover {
        background: var(--light-gray);
    }
    
    .mobile-language-option.active {
        background: var(--primary-color);
        color: white;
    }
    
    .mobile-language-option.active:hover {
        background: var(--accent-color);
    }
    
    .mobile-language-option .flag {
        font-size: 1.2rem;
        min-width: 24px;
        text-align: center;
    }
    
    .mobile-notification-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
        border: 1px solid var(--border-color);
        padding: 0.75rem;
        border-radius: 6px;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.875rem;
    }
    
    .mobile-notification-btn:hover {
        border-color: var(--primary-color);
    }
    
    .mobile-notification-badge {
        background: var(--danger-color);
        color: white;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        font-weight: 600;
        min-width: 20px;
        text-align: center;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: block;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile welcome content adjustments */
    .welcome-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .demo-navigation {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .demo-nav-card {
        padding: 1rem;
    }
    
    .back-link {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    /* Mobile main content adjustments */
    .main-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Mobile dashboard adjustments */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        margin-bottom: 0;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-card {
        text-align: center;
    }
    
    /* Responsive text sizing */
    .welcome-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .welcome-content p {
        font-size: 1rem;
    }
    
    /* Fix for Japanese and other languages */
    .mobile-nav-link {
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }
    
    .mobile-user-profile span {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Pulse Section */
.pulse-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.pulse-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.pulse-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.pulse-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.select-dropdown {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.select-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select-dropdown:hover {
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.metric-icon.productivity { background: linear-gradient(135deg, #667eea, #764ba2); }
.metric-icon.active-time { background: linear-gradient(135deg, #f093fb, #f5576c); }
.metric-icon.focus-score { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.metric-icon.team-efficiency { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.metric-content {
    flex: 1;
}

.metric-content h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-change.positive { color: var(--success-color); }
.metric-change.negative { color: var(--danger-color); }
.metric-change.neutral { color: var(--text-secondary); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Wide card that spans multiple columns */
.dashboard-card.wide-card {
    grid-column: 1 / -1;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-controls {
    display: flex;
    gap: 0.5rem;
}

/* Activity Feed */
.activity-feed {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.activity-list {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    flex: 1;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--light-gray);
    transition: all 0.2s;
}

.activity-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.activity-item.active {
    border-left: 4px solid var(--success-color);
}

.activity-item.idle {
    border-left: 4px solid var(--warning-color);
}

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

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-details {
    flex: 1;
}

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

.activity-action {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

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

.activity-app {
    flex-shrink: 0;
}

.activity-app i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Team Overview Styles */
.dashboard-card.team-overview {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
    height: 400px;
    overflow-y: auto;
    flex: 1;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--light-gray);
    transition: all 0.2s;
}

.team-member:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.team-member img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
    position: relative;
}

.member-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.member-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.member-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.time-active {
    font-weight: 600;
    color: var(--text-primary);
}

.productivity-score {
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 500;
}

/* User Activity Grid */
.dashboard-card.app-activity-monitor {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.user-activity-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    height: 400px;
    overflow-y: auto;
    flex: 1;
}

.user-activity-item {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
}

.user-activity-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

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

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: auto;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.idle {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.app-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-usage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-name {
    min-width: 80px;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.usage-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s;
}

.usage-time {
    min-width: 60px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* App Usage List */
.app-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Two-column layout for app list in wide cards */
.wide-card .app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--light-gray);
    transition: all 0.2s;
}

.app-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.app-icon.vscode {
    background: #007ACC;
}

.app-icon.browser {
    background: #4285F4;
}

.app-icon.slack {
    background: #4A154B;
}

.app-icon.excel {
    background: #217346;
}

.app-icon.figma {
    background: #F24E1E;
}

.app-info {
    flex: 1;
}

.app-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.app-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.active-users {
    font-size: 0.75rem;
}

.user-count {
    color: var(--success-color);
    font-weight: 500;
}

.app-usage-bar {
    width: 100px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 1rem;
}

.usage-percent {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

/* Alerts */
.alerts-list {
    padding: 1rem;
}

.alert-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item:hover {
    background: var(--light-gray);
}

.alert-item i {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.alert-item.info i { color: var(--primary-color); }
.alert-item.warning i { color: var(--warning-color); }
.alert-item.success i { color: var(--success-color); }

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.alert-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.alert-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Alerts Section */
.alerts-section {
    margin-top: 2rem;
}

.alerts-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.alerts-panel.full-width {
    grid-column: 1 / -1;
}

.alerts-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    background: var(--light-gray);
    transition: all 0.2s;
}

.alert-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.alert-item.info {
    border-left-color: var(--primary-color);
}

.alert-item.warning {
    border-left-color: var(--warning-color);
}

.alert-item.success {
    border-left-color: var(--success-color);
}

.alert-item.danger {
    border-left-color: var(--danger-color);
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.alert-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.alert-item i {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.alert-item.warning i {
    color: var(--warning-color);
}

.alert-item.success i {
    color: var(--success-color);
}

.alert-item.danger i {
    color: var(--danger-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Notification Dialog Styles */
.notification-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.notification-dialog.active {
    display: flex;
}

.notification-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.notification-dialog-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
}

.notification-dialog-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-dialog-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.close-dialog-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.notification-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    background: var(--light-gray);
    transition: all 0.2s;
}

.notification-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.notification-item.high-priority {
    border-left-color: var(--danger-color);
}

.notification-item.medium-priority {
    border-left-color: var(--warning-color);
}

.notification-item.low-priority {
    border-left-color: var(--success-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-priority {
    display: flex;
    align-items: center;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-badge.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority-badge.high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.priority-badge.medium {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.priority-badge.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-dialog-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--light-gray);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    border: 2px solid white;
    animation: notificationPulse 2s infinite ease-in-out;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating Controls */
.floating-controls {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid white;
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.idle {
    background: var(--warning-color);
}

.status-indicator.away {
    background: var(--danger-color);
}

/* Activity Indicators */
.activity-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.activity-indicator.online {
    background: var(--success-color);
}

.activity-indicator.idle {
    background: var(--warning-color);
}

.activity-indicator.away {
    background: var(--danger-color);
}

/* Analytics Page Specific Styles */
.analytics-overview {
    padding: 2rem 0;
    background: #f8fafc;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-header h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), #4F46E5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.kpi-change.positive {
    color: #10B981;
}

.kpi-change.negative {
    color: #EF4444;
}

.kpi-change.neutral {
    color: var(--text-secondary);
}

.kpi-chart {
    height: 40px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analytics-card.large {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.chart-control-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-control-btn:hover {
    background: var(--background-light);
}

.chart-control-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container > div {
    width: 100% !important;
    height: 100% !important;
}

.analytics-card.large .chart-container {
    height: 400px;
}

.wide-card .chart-container {
    height: 350px;
    width: 100%;
}

.metric-selector, .performer-metric {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.usage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    background: none;
    border-radius: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.time-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.category-item.productive .category-dot {
    background: #10B981;
}

.category-item.neutral .category-dot {
    background: #F59E0B;
}

.category-item.distracted .category-dot {
    background: #EF4444;
}

.pattern-controls {
    display: flex;
    gap: 0.5rem;
}

.pattern-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.pattern-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.heatmap-container {
    height: 100%;
    min-height: 350px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.heatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: 280px;
    max-width: 100%;
}

.heatmap-row {
    display: flex;
    gap: 2px;
    flex: 1;
}

.heatmap-row.header {
    flex: 0 0 30px;
}

.heatmap-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.heatmap-cell.corner {
    background: transparent;
}

.heatmap-cell.hour-label,
.heatmap-cell.day-label {
    background: transparent;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.6rem;
}

.heatmap-cell.hour-label {
    flex: 1;
    text-align: center;
}

.heatmap-cell.day-label {
    flex: 0 0 50px;
    writing-mode: horizontal-tb;
    text-align: center;
    font-size: 0.7rem;
}

.heatmap-cell.data-cell {
    cursor: pointer;
    min-height: 20px;
    min-width: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.heatmap-cell.data-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.heatmap-cell.intensity-0 {
    background: #f1f5f9;
}

.heatmap-cell.intensity-1 {
    background: #dbeafe;
}

.heatmap-cell.intensity-2 {
    background: #93c5fd;
}

.heatmap-cell.intensity-3 {
    background: #3b82f6;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-scale {
    display: flex;
    gap: 2px;
}

.legend-item {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-item.intensity-0 {
    background: #f1f5f9;
}

.legend-item.intensity-1 {
    background: #dbeafe;
}

.legend-item.intensity-2 {
    background: #93c5fd;
}

.legend-item.intensity-3 {
    background: #3b82f6;
}

/* Goals Section */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.goal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.goal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.goal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.goal-status.on-track {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.goal-status.achieved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.goal-status.behind {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-in-out forwards;
    stroke: #3b82f6;
}

.circular-chart.achieved .circle {
    stroke: #10b981;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-details {
    flex: 1;
}

.goal-details p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.goal-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Top Performers Section */
.performers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.performer-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performer-item .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.performer-item:first-child .rank {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.performer-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.performer-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.performer-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.performer-info {
    flex: 1;
}

.performer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.performer-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.performer-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.performer-item:first-child .performer-score {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.performer-item:nth-child(2) .performer-score {
    color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.performer-item:nth-child(3) .performer-score {
    color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
}

/* Performer metric selector styling */
.performer-metric {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.performer-metric:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.performer-metric:hover {
    border-color: var(--primary-color);
}

/* Panel Footer Legend Styles */
.panel-footer,
.card-footer,
.chart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-footer .usage-legend,
.card-footer .usage-legend,
.chart-footer .usage-legend,
.panel-footer .legend,
.card-footer .legend,
.chart-footer .legend,
.chart-footer .time-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 0;
    background: none;
    border-radius: 0;
}

.panel-footer .legend-item,
.card-footer .legend-item,
.chart-footer .legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.panel-footer .legend-color,
.card-footer .legend-color,
.chart-footer .legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.panel-footer .chart-info,
.card-footer .chart-info,
.chart-footer .chart-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Responsive adjustments for panel footers */
@media (max-width: 768px) {
    .panel-footer,
    .card-footer,
    .chart-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .panel-footer .usage-legend,
    .card-footer .usage-legend,
    .chart-footer .usage-legend,
    .panel-footer .legend,
    .card-footer .legend,
    .chart-footer .legend,
    .chart-footer .time-categories {
        width: 100%;
        justify-content: center;
    }
    
    .panel-footer .chart-info,
    .card-footer .chart-info,
    .chart-footer .chart-info {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card.large {
        grid-column: 1;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .usage-legend {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-progress {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .heatmap-container {
        padding: 0.5rem;
        min-height: 280px;
    }
    
    .heatmap-grid {
        height: 220px;
    }
    
    .heatmap-cell {
        font-size: 0.6rem;
    }
    
    .heatmap-cell.hour-label {
        font-size: 0.5rem;
    }
    
    .heatmap-cell.day-label {
        flex: 0 0 35px;
        font-size: 0.6rem;
    }
    
    .heatmap-cell.data-cell {
        min-width: 6px;
        min-height: 15px;
    }
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-content h1 i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-range-picker {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}

.date-range-picker:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.date-range-picker:hover {
    border-color: var(--primary-color);
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Responsive page header */
@media (max-width: 768px) {
    .page-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .date-range-picker {
        flex: 1;
        min-width: auto;
    }
}

/* Teams Page Styling */

/* Teams Stats Section */
.teams-stats {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: white;
}

.stat-icon.total-teams {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.total-members {
    background: linear-gradient(135deg, #10b981, #047857);
}

.stat-icon.avg-productivity {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.active-now {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.neutral {
    color: #64748b;
}

.stat-change i {
    font-size: 0.75rem;
}

/* Teams Management Section */
.teams-management {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-btn:hover,
.view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-right: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

/* Team Header */
.team-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.team-avatar.engineering {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.team-avatar.design {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.team-avatar.marketing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.team-avatar.sales {
    background: linear-gradient(135deg, #10b981, #047857);
}

.team-avatar.qa {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.team-avatar.devops {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.team-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.team-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.team-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-count,
.team-lead {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.member-count i,
.team-lead i {
    color: #94a3b8;
    font-size: 0.625rem;
}

.team-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dcfce7;
    color: #166534;
    flex-shrink: 0;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* Team Metrics */
.team-metrics {
    margin-bottom: 1.5rem;
}

.metrics-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    margin-left: 1rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
}

.metrics-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.summary-item i {
    color: #94a3b8;
    font-size: 0.625rem;
}

/* Team Members */
.team-members {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.members-preview {
    display: flex;
    align-items: center;
    gap: -0.5rem;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    position: relative;
    margin-right: -8px;
    transition: transform 0.2s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar.more {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: #64748b;
}

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

.btn-action {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-action i {
    font-size: 0.625rem;
}

/* Team Activity Section */
.team-activity {
    padding: 3rem 0;
    background: #f8fafc;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.activity-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.activity-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
}

.activity-feed {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

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

.activity-item:hover {
    background: #f8fafc;
}

.activity-avatar {
    flex-shrink: 0;
}

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-text strong {
    color: #1e293b;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.activity-type {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
}

.activity-type.join {
    background: #10b981;
}

.activity-type.achievement {
    background: #f59e0b;
}

.activity-type.update {
    background: #3b82f6;
}

.activity-type.promotion {
    background: #8b5cf6;
}

/* Create Team Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Notification Dialog Styles */
.notification-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.notification-dialog.active {
    display: flex;
}

.notification-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.notification-dialog-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
}

.notification-dialog-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-dialog-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.close-dialog-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.notification-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    background: var(--light-gray);
    transition: all 0.2s;
}

.notification-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.notification-item.high-priority {
    border-left-color: var(--danger-color);
}

.notification-item.medium-priority {
    border-left-color: var(--warning-color);
}

.notification-item.low-priority {
    border-left-color: var(--success-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-priority {
    display: flex;
    align-items: center;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-badge.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority-badge.high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.priority-badge.medium {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.priority-badge.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-dialog-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--light-gray);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    border: 2px solid white;
    animation: notificationPulse 2s infinite ease-in-out;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating Controls */
.floating-controls {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid white;
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.idle {
    background: var(--warning-color);
}

.status-indicator.away {
    background: var(--danger-color);
}

/* Activity Indicators */
.activity-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.activity-indicator.online {
    background: var(--success-color);
}

.activity-indicator.idle {
    background: var(--warning-color);
}

.activity-indicator.away {
    background: var(--danger-color);
}

/* Analytics Page Specific Styles */
.analytics-overview {
    padding: 2rem 0;
    background: #f8fafc;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-header h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), #4F46E5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.kpi-change.positive {
    color: #10B981;
}

.kpi-change.negative {
    color: #EF4444;
}

.kpi-change.neutral {
    color: var(--text-secondary);
}

.kpi-chart {
    height: 40px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analytics-card.large {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.chart-control-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-control-btn:hover {
    background: var(--background-light);
}

.chart-control-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container > div {
    width: 100% !important;
    height: 100% !important;
}

.analytics-card.large .chart-container {
    height: 400px;
}

.wide-card .chart-container {
    height: 350px;
    width: 100%;
}

.metric-selector, .performer-metric {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.usage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    background: none;
    border-radius: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.time-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.category-item.productive .category-dot {
    background: #10B981;
}

.category-item.neutral .category-dot {
    background: #F59E0B;
}

.category-item.distracted .category-dot {
    background: #EF4444;
}

.pattern-controls {
    display: flex;
    gap: 0.5rem;
}

.pattern-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.pattern-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.heatmap-container {
    height: 100%;
    min-height: 350px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.heatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: 280px;
    max-width: 100%;
}

.heatmap-row {
    display: flex;
    gap: 2px;
    flex: 1;
}

.heatmap-row.header {
    flex: 0 0 30px;
}

.heatmap-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.heatmap-cell.corner {
    background: transparent;
}

.heatmap-cell.hour-label,
.heatmap-cell.day-label {
    background: transparent;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.6rem;
}

.heatmap-cell.hour-label {
    flex: 1;
    text-align: center;
}

.heatmap-cell.day-label {
    flex: 0 0 50px;
    writing-mode: horizontal-tb;
    text-align: center;
    font-size: 0.7rem;
}

.heatmap-cell.data-cell {
    cursor: pointer;
    min-height: 20px;
    min-width: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.heatmap-cell.data-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.heatmap-cell.intensity-0 {
    background: #f1f5f9;
}

.heatmap-cell.intensity-1 {
    background: #dbeafe;
}

.heatmap-cell.intensity-2 {
    background: #93c5fd;
}

.heatmap-cell.intensity-3 {
    background: #3b82f6;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-scale {
    display: flex;
    gap: 2px;
}

.legend-item {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-item.intensity-0 {
    background: #f1f5f9;
}

.legend-item.intensity-1 {
    background: #dbeafe;
}

.legend-item.intensity-2 {
    background: #93c5fd;
}

.legend-item.intensity-3 {
    background: #3b82f6;
}

/* Goals Section */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.goal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.goal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.goal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.goal-status.on-track {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.goal-status.achieved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.goal-status.behind {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-in-out forwards;
    stroke: #3b82f6;
}

.circular-chart.achieved .circle {
    stroke: #10b981;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-details {
    flex: 1;
}

.goal-details p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.goal-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Top Performers Section */
.performers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.performer-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performer-item .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.performer-item:first-child .rank {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.performer-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.performer-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.performer-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.performer-info {
    flex: 1;
}

.performer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.performer-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.performer-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.performer-item:first-child .performer-score {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.performer-item:nth-child(2) .performer-score {
    color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.performer-item:nth-child(3) .performer-score {
    color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
}

/* Performer metric selector styling */
.performer-metric {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.performer-metric:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.performer-metric:hover {
    border-color: var(--primary-color);
}

/* Panel Footer Legend Styles */
.panel-footer,
.card-footer,
.chart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-footer .usage-legend,
.card-footer .usage-legend,
.chart-footer .usage-legend,
.panel-footer .legend,
.card-footer .legend,
.chart-footer .legend,
.chart-footer .time-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 0;
    background: none;
    border-radius: 0;
}

.panel-footer .legend-item,
.card-footer .legend-item,
.chart-footer .legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.panel-footer .legend-color,
.card-footer .legend-color,
.chart-footer .legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.panel-footer .chart-info,
.card-footer .chart-info,
.chart-footer .chart-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Responsive adjustments for panel footers */
@media (max-width: 768px) {
    .panel-footer,
    .card-footer,
    .chart-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .panel-footer .usage-legend,
    .card-footer .usage-legend,
    .chart-footer .usage-legend,
    .panel-footer .legend,
    .card-footer .legend,
    .chart-footer .legend,
    .chart-footer .time-categories {
        width: 100%;
        justify-content: center;
    }
    
    .panel-footer .chart-info,
    .card-footer .chart-info,
    .chart-footer .chart-info {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card.large {
        grid-column: 1;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .usage-legend {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-progress {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .heatmap-container {
        padding: 0.5rem;
        min-height: 280px;
    }
    
    .heatmap-grid {
        height: 220px;
    }
    
    .heatmap-cell {
        font-size: 0.6rem;
    }
    
    .heatmap-cell.hour-label {
        font-size: 0.5rem;
    }
    
    .heatmap-cell.day-label {
        flex: 0 0 35px;
        font-size: 0.6rem;
    }
    
    .heatmap-cell.data-cell {
        min-width: 6px;
        min-height: 15px;
    }
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-content h1 i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-range-picker {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}

.date-range-picker:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.date-range-picker:hover {
    border-color: var(--primary-color);
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Responsive page header */
@media (max-width: 768px) {
    .page-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .date-range-picker {
        flex: 1;
        min-width: auto;
    }
}

/* Teams Page Styling */

/* Teams Stats Section */
.teams-stats {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: white;
}

.stat-icon.total-teams {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.total-members {
    background: linear-gradient(135deg, #10b981, #047857);
}

.stat-icon.avg-productivity {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.active-now {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.neutral {
    color: #64748b;
}

.stat-change i {
    font-size: 0.75rem;
}

/* Teams Management Section */
.teams-management {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-btn:hover,
.view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-right: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

/* Team Header */
.team-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.team-avatar.engineering {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.team-avatar.design {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.team-avatar.marketing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.team-avatar.sales {
    background: linear-gradient(135deg, #10b981, #047857);
}

.team-avatar.qa {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.team-avatar.devops {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.team-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.team-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.team-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-count,
.team-lead {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.member-count i,
.team-lead i {
    color: #94a3b8;
    font-size: 0.625rem;
}

.team-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dcfce7;
    color: #166534;
    flex-shrink: 0;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* Team Metrics */
.team-metrics {
    margin-bottom: 1.5rem;
}

.metrics-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    margin-left: 1rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
}

.metrics-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.summary-item i {
    color: #94a3b8;
    font-size: 0.625rem;
}

/* Team Members */
.team-members {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.members-preview {
    display: flex;
    align-items: center;
    gap: -0.5rem;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    position: relative;
    margin-right: -8px;
    transition: transform 0.2s ease;
}

.member-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar.more {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: #64748b;
}

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

.btn-action {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-action i {
    font-size: 0.625rem;
}

/* Team Activity Section */
.team-activity {
    padding: 3rem 0;
    background: #f8fafc;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.activity-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.activity-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
}

.activity-feed {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

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

.activity-item:hover {
    background: #f8fafc;
}

.activity-avatar {
    flex-shrink: 0;
}

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-text strong {
    color: #1e293b;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.activity-type {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
}

.activity-type.join {
    background: #10b981;
}

.activity-type.achievement {
    background: #f59e0b;
}

.activity-type.update {
    background: #3b82f6;
}

.activity-type.promotion {
    background: #8b5cf6;
}

/* Create Team Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Notification Dialog Styles */
.notification-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.notification-dialog.active {
    display: flex;
}

.notification-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.notification-dialog-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-gray);
}

.notification-dialog-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-dialog-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.close-dialog-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.notification-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    background: var(--light-gray);
    transition: all 0.2s;
}

.notification-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.notification-item.high-priority {
    border-left-color: var(--danger-color);
}

.notification-item.medium-priority {
    border-left-color: var(--warning-color);
}

.notification-item.low-priority {
    border-left-color: var(--success-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-priority {
    display: flex;
    align-items: center;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-badge.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority-badge.high {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.priority-badge.medium {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.priority-badge.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-dialog-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--light-gray);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    border: 2px solid white;
    animation: notificationPulse 2s infinite ease-in-out;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating Controls */
.floating-controls {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    border: 2px solid white;
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.idle {
    background: var(--warning-color);
}

.status-indicator.away {
    background: var(--danger-color);
}

/* Activity Indicators */
.activity-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.activity-indicator.online {
    background: var(--success-color);
}

.activity-indicator.idle {
    background: var(--warning-color);
}

.activity-indicator.away {
    background: var(--danger-color);
}

/* Analytics Page Specific Styles */
.analytics-overview {
    padding: 2rem 0;
    background: #f8fafc;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-header h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), #4F46E5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.kpi-change.positive {
    color: #10B981;
}

.kpi-change.negative {
    color: #EF4444;
}

.kpi-change.neutral {
    color: var(--text-secondary);
}

.kpi-chart {
    height: 40px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analytics-card.large {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.chart-control-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-control-btn:hover {
    background: var(--background-light);
}

.chart-control-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container > div {
    width: 100% !important;
    height: 100% !important;
}

.analytics-card.large .chart-container {
    height: 400px;
}

.wide-card .chart-container {
    height: 350px;
    width: 100%;
}

.metric-selector, .performer-metric {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.usage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    background: none;
    border-radius: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.time-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.category-item.productive .category-dot {
    background: #10B981;
}

.category-item.neutral .category-dot {
    background: #F59E0B;
}

.category-item.distracted .category-dot {
    background: #EF4444;
}

.pattern-controls {
    display: flex;
    gap: 0.5rem;
}

.pattern-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.pattern-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.heatmap-container {
    height: 100%;
    min-height: 350px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.heatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: 280px;
    max-width: 100%;
}

.heatmap-row {
    display: flex;
    gap: 2px;
    flex: 1;
}

.heatmap-row.header {
    flex: 0 0 30px;
}

.heatmap-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.heatmap-cell.corner {
    background: transparent;
}

.heatmap-cell.hour-label,
.heatmap-cell.day-label {
    background: transparent;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.6rem;
}

.heatmap-cell.hour-label {
    flex: 1;
    text-align: center;
}

.heatmap-cell.day-label {
    flex: 0 0 50px;
    writing-mode: horizontal-tb;
    text-align: center;
    font-size: 0.7rem;
}

.heatmap-cell.data-cell {
    cursor: pointer;
    min-height: 20px;
    min-width: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.heatmap-cell.data-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.heatmap-cell.intensity-0 {
    background: #f1f5f9;
}

.heatmap-cell.intensity-1 {
    background: #dbeafe;
}

.heatmap-cell.intensity-2 {
    background: #93c5fd;
}

.heatmap-cell.intensity-3 {
    background: #3b82f6;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-scale {
    display: flex;
    gap: 2px;
}

.legend-item {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-item.intensity-0 {
    background: #f1f5f9;
}

.legend-item.intensity-1 {
    background: #dbeafe;
}

.legend-item.intensity-2 {
    background: #93c5fd;
}

.legend-item.intensity-3 {
    background: #3b82f6;
}

/* Goals Section */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.goal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.goal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.goal-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.goal-status.on-track {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.goal-status.achieved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.goal-status.behind {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-in-out forwards;
    stroke: #3b82f6;
}

.circular-chart.achieved .circle {
    stroke: #10b981;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-details {
    flex: 1;
}

.goal-details p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.goal-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Top Performers Section */
.performers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.performer-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performer-item .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.performer-item:first-child .rank {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.performer-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.performer-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.performer-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.25rem;
}

.performer-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.performer-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.performer-item:first-child .performer-score {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.performer-item:nth-child(2) .performer-score {
    color: #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.performer-item:nth-child(3) .performer-score {
    color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
}

