.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100vh;
    width: 220px;
    background: #2c3e50;
    color: white;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

    .sidebar.collapsed {
        width: 70px;
    }

.logo-container {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 90%;
    height: 50px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding:0;
}

.sidebar-logo-min {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #2c3e50;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .sidebar-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-toggle:hover {
        background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
    }

    .sidebar-toggle:hover::before {
        opacity: 1;
    }

    .sidebar-toggle:active {
        transform: translateY(0) scale(0.96);
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }

    .sidebar-toggle i {
        font-size: 1.1rem;
        line-height: 1;
        transition: transform 0.3s ease;
        z-index: 1;
    }

    .sidebar-toggle:hover i {
        transform: translateX(2px);
    }

    .sidebar.collapsed .sidebar-toggle:hover i {
        transform: translateX(-2px);
    }

.main-container {
    margin-left: 208px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    overflow: visible;
    width: calc(100% - 180px);
}

    .main-container.expanded {
        margin-left: 50px;
        width: calc(100% - 30px);
    }

.sidebar .nav-link {
    color: #ecf0f1;
    padding: 12px 15px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 20px;
    flex-shrink: 0;
}

.sidebar .nav-link .nav-text {
    flex: 1;
}

.sidebar.collapsed .nav-link .nav-text {
    display: none;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: #34495e;
    border-left-color: #3498db;
}

.sidebar .nav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar .nav-link-profile {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link-profile:hover,
.sidebar .nav-link-profile.active {
    background: #34495e;
    border-left-color: #3498db;
}

.sidebar .nav-link-profile i {
    font-size: 1.3rem;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 15px;
}

.sidebar.collapsed .nav-divider {
    margin: 10px 5px;
}

.main-content {
    padding: 30px;
}

.card-header {
    background: #3498db;
    color: white;
    font-weight: bold;
}

.company-selector {
    background: #34495e;
    padding: 15px 20px;
    border-bottom: 3px solid #3498db;
}

    .company-selector h3 {
        font-weight: 600;
        letter-spacing: 0.5px;
        font-size: 1.2rem;
        margin: 0;
    }

.company-badge {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    .company-badge.clickable {
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

        .company-badge.clickable:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

.company-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.company-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .company-item:last-child {
        border-bottom: none;
    }

    .company-item:hover {
        background-color: #f8f9fa;
    }

    .company-item.selected {
        background-color: #e3f2fd;
        border-left: 4px solid #3498db;
    }

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 20px;
}

    .stat-card h3 {
        font-size: 2.5rem;
        margin: 0;
    }

    .stat-card p {
        margin: 5px 0 0 0;
        opacity: 0.9;
    }

.no-company-selected {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

    .no-company-selected i {
        font-size: 4rem;
        margin-bottom: 20px;
    }

.company-required-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
