/* ============================================================
   MVP Help Desk Selfware — Design System Evaflow
   Identidade: Tons escuros, cyber green, glassmorphism
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #e2e8f0;
}

/* ---- Glassmorphism Utilities ---- */
.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.glass-strong {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.6);
}

/* ---- VIP Card Glow ---- */
.vip-card {
    border: 1.5px solid #34d399 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15), inset 0 0 10px rgba(16, 185, 129, 0.05);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.15), inset 0 0 8px rgba(16, 185, 129, 0.03); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(16, 185, 129, 0.08); }
}

/* ---- VIP Badge ---- */
.vip-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* ---- Status Badges ---- */
.status-novo {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-em-atendimento {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pendente {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-resolvido {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---- Kanban Column Headers ---- */
.kanban-col-novo { border-top: 3px solid #3b82f6; }
.kanban-col-em-atendimento { border-top: 3px solid #f59e0b; }
.kanban-col-pendente { border-top: 3px solid #f97316; }
.kanban-col-resolvido { border-top: 3px solid #10b981; }

/* ---- Kanban Card Hover ---- */
.kanban-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ---- Button Styles ---- */
.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
    border-color: #475569;
}

/* ---- KPI Card ---- */
.kpi-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ---- Tab Navigation ---- */
.tab-button {
    position: relative;
    color: #94a3b8;
    transition: color 0.2s ease;
    padding-bottom: 12px;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.tab-button:hover {
    color: #e2e8f0;
}

.tab-button.active {
    color: #10b981;
    font-weight: 600;
}

.tab-button.active::after {
    width: 100%;
}

/* ---- Login Card Background Pattern ---- */
.login-bg {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

/* ---- Sidebar Navigation Link ---- */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
}

.sidebar-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 500;
}

/* ---- Toast Notifications ---- */
.toast {
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(20px); }
}

/* ---- Loading Spinner ---- */
.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(51, 65, 85, 0.5);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Responsive: Sidebar ---- */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
    .with-sidebar {
        margin-left: 0 !important;
    }
}

/* ---- Password Toggle ---- */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #94a3b8;
}

/* ---- Floating Action Button (Abrir Chamado) ---- */
.fab-pulse {
    animation: fabPulse 3s ease-in-out infinite;
}

.fab-pulse:hover {
    animation: none;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 15px 60px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.15); }
}

/* ---- Empty State ---- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================================
   ESTILOS DE AVALIAÇÃO (Estilo Uber)
   ============================================================ */

.star-btn {
    font-size: 2.25rem;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s, text-shadow 0.2s;
    outline: none;
}

.star-btn:hover {
    transform: scale(1.15);
}

.star-btn.selected {
    animation: starPop 0.3s ease-out;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1.2); }
}

/* Animação do Thumbs Up 👍 */
.rating-thumbs-up {
    display: inline-block;
    animation: thumbsUpBounce 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}

@keyframes thumbsUpBounce {
    0% {
        transform: scale(0.6) rotate(-15deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1) rotate(15deg);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.4));
    }
}

.rating-thanks-text {
    animation: slideUpFade 0.4s ease-out 0.2s both;
}

.rating-thanks-sub {
    animation: slideUpFade 0.4s ease-out 0.4s both;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
