/* ===== Service Dashboard ===== */

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.sidebar-logo span {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 12px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

.sidebar-nav a.active {
    background: #3b82f6;
    color: #fff;
}

.sidebar-nav .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.75rem 0;
}

/* Main */
.main {
    margin-left: 240px;
    padding: 2rem;
    min-height: 100vh;
}

/* Header user */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.header-user-company {
    font-size: 12px;
    color: #64748b;
}

.header-logout {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.15s;
}

.header-logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Page header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        height: 60px;
    }

    .sidebar-logo {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        padding: 0 0.5rem;
        gap: 0.25rem;
        overflow-x: auto;
        align-items: center;
    }

    .sidebar-nav a {
        flex-direction: column;
        padding: 6px 10px;
        font-size: 10px;
        gap: 2px;
        white-space: nowrap;
    }

    .sidebar-divider {
        display: none;
    }

    .main {
        margin-left: 0;
        margin-bottom: 60px;
        padding: 1rem;
    }
}