/* HyperSoft HelpDesk — tema profissional */

.page-helpdesk {
    --pro-brand: #0c2238;
    --pro-accent: #0284c7;
    --pro-accent-hover: #0369a1;
    --primary-indigo: #0284c7;
}

.page-helpdesk .global-bg-shape {
    display: none;
}

.page-helpdesk .crm-sidebar {
    background: var(--pro-brand);
    backdrop-filter: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 2px 0 24px rgba(12, 34, 56, 0.15);
}

.page-helpdesk .sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: 1.1rem 1rem;
}

.page-helpdesk .sidebar-brand .logo-img--full {
    filter: brightness(0) invert(1);
    height: 28px;
    opacity: 0.95;
}

.page-helpdesk .sidebar-nav-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.page-helpdesk .crm-sidebar .sidebar-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
}

.page-helpdesk .crm-sidebar .sidebar-link i {
    color: rgba(255, 255, 255, 0.45);
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}

.page-helpdesk .crm-sidebar .sidebar-link:hover,
.page-helpdesk .crm-sidebar .sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.page-helpdesk .crm-sidebar .sidebar-link.active {
    background: rgba(2, 132, 199, 0.25);
    box-shadow: inset 3px 0 0 #38bdf8;
}

.page-helpdesk .crm-sidebar .sidebar-link:hover i,
.page-helpdesk .crm-sidebar .sidebar-link.active i {
    color: #7dd3fc;
}

.page-helpdesk .sidebar-cta {
    background: var(--pro-accent);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
    font-weight: 600;
    margin: 0.5rem 0.75rem 0;
}

.page-helpdesk .sidebar-cta:hover {
    background: var(--pro-accent-hover);
    transform: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.page-helpdesk .sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}

.page-helpdesk .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.page-helpdesk .sidebar-user strong { color: #fff; }
.page-helpdesk .sidebar-user small { color: rgba(255, 255, 255, 0.48); }

.page-helpdesk .sidebar-user-avatar {
    background: rgba(2, 132, 199, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-helpdesk .btn-support {
    background: var(--pro-accent);
}

.page-helpdesk .btn-support:hover {
    background: var(--pro-accent-hover);
}

.page-helpdesk .stat-card {
    border-left-color: var(--pro-accent);
}

.page-helpdesk .stat-card-icon--teal {
    background: rgba(2, 132, 199, 0.1);
    color: var(--pro-accent);
}

.page-helpdesk .welcome-banner {
    background: linear-gradient(135deg, var(--pro-brand) 0%, #0f4c75 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(12, 34, 56, 0.15);
}

.page-helpdesk .filter-tab.active {
    background: var(--pro-brand);
    color: #fff;
    border-color: var(--pro-brand);
}

.page-helpdesk .filter-tab:hover {
    color: var(--pro-accent);
    border-color: rgba(2, 132, 199, 0.25);
}

.page-helpdesk .ticket-msg--own {
    background: #f0f9ff;
    border-color: rgba(2, 132, 199, 0.15);
}

.page-helpdesk .ticket-thread {
    scroll-behavior: smooth;
}

.page-helpdesk .login-page--helpdesk .login-brand {
    background: linear-gradient(165deg, #0c2238 0%, #0f4c75 55%, #155e8a 100%);
}

.page-helpdesk .login-form-wrap::before {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(2, 132, 199, 0.08), transparent 42%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.06), transparent 40%);
}

.page-helpdesk .login-page--helpdesk .login-input-wrap input:focus {
    border-color: var(--pro-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.page-helpdesk .login-page--helpdesk .login-submit {
    background: var(--pro-accent);
}

.page-helpdesk .login-page--helpdesk .login-submit:hover {
    background: var(--pro-accent-hover);
}

.page-helpdesk .login-brand-badge {
    color: rgba(255, 255, 255, 0.95);
}

/* Sidebar colapsada — HelpDesk */
@media (min-width: 1025px) {
    body.page-helpdesk.sidebar-collapsed .sidebar-nav-group + .sidebar-nav-group {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    body.page-helpdesk.sidebar-collapsed .crm-sidebar .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    body.page-helpdesk.sidebar-collapsed .crm-sidebar .sidebar-link.active {
        background: rgba(2, 132, 199, 0.38);
        box-shadow: none;
    }

    body.page-helpdesk.sidebar-collapsed .crm-sidebar .sidebar-link.active i {
        color: #fff;
    }

    body.page-helpdesk.sidebar-collapsed .sidebar-cta {
        width: 44px;
        height: 44px;
        margin: 0.45rem auto 0;
        padding: 0;
        border-radius: 10px;
    }
}

.page-helpdesk .login-page--pro .btn-support {
    background: var(--pro-accent);
}

/* Alinhado ao breakpoint do CRM (1025px) */
@media (min-width: 1025px) {
    .page-helpdesk .sidebar-nav .sidebar-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-helpdesk .hd-topbar-cta .btn-text {
        display: none;
    }

    .page-helpdesk .welcome-banner h2 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .page-helpdesk .welcome-banner-meta {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .page-helpdesk .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
