/* ═══════════════════════════════════════════════
   ZELADORIA DIGITAL — DESIGN SYSTEM PREMIUM
   ═══════════════════════════════════════════════ */

:root {
    /* ── Core palette ── */
    --bg-dark: #0f172a;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;

    --primary: #00f2fe;
    --primary-deep: #00b4d8;
    --primary-glow: rgba(0, 242, 254, 0.5);

    --secondary: #8a2be2;
    --secondary-glow: rgba(138, 43, 226, 0.5);

    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;

    --text-dark: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* ── Glass ── */
    --glass-bg: rgba(8, 18, 42, 0.62);
    --glass-border: rgba(255, 255, 255, 0.13);

    /* ── Urgency ── */
    --urg-urgente: #ef4444;
    --urg-alta: #f97316;
    --urg-media: #f59e0b;
    --urg-baixa: #3b82f6;
    --urg-projeto: #94a3b8;

    /* ── Status ── */
    --status-red: #ef4444;
    --status-amber: #f59e0b;
    --status-green: #10b981;
    --status-blue: #2563eb;

    /* ── Spacing ── */
    --sidebar-w: 260px;
    --topbar-h: 70px;

    /* ── Radius ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-glow-cyan: 0 0 20px rgba(0,229,255,0.28);
    --shadow-glow-purple: 0 0 20px rgba(130,40,230,0.38);

    /* ── Transitions ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }


/* ═══════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════ */

.login-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('../img/login_bg.png') no-repeat center center;
    background-size: cover;
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: var(--text-white);
}

.login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 85% at 50% 45%,
        rgba(8,18,55,0.28) 0%, rgba(4,10,35,0.70) 100%);
    z-index: 0;
}

.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 40%, rgba(0,220,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 82% 40%, rgba(110,30,210,0.15) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    z-index: 2;
    position: relative;
}

.logo-img {
    width: 80px;
    height: 80px;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 18px rgba(0,229,255,0.6));
    object-fit: contain;
}

.logo-container h1 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    text-shadow: 0 0 22px rgba(0,229,255,0.4);
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
    z-index: 2;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 480px;
    padding: 34px 40px 30px;
    text-align: center;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* Profile Selector */
.perfil-selector { display: flex; gap: 12px; margin-bottom: 26px; }

.perfil-btn {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 18px 10px 15px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.55);
    user-select: none;
}

.perfil-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
}

.perfil-btn.active.morador {
    border-color: #00e5ff;
    background: rgba(0,229,255,0.12);
    box-shadow: var(--shadow-glow-cyan);
    color: #ffffff;
}

.perfil-btn.active.gestor {
    border-color: #9b59e8;
    background: rgba(130,40,230,0.2);
    box-shadow: var(--shadow-glow-purple);
    color: #ffffff;
}

.perfil-icon { width: 52px; height: 44px; display: flex; align-items: center; justify-content: center; }
.perfil-icon svg { width: 40px; height: 40px; }
.morador-icon { color: #00e5ff; }
.gestor-icon { color: #c084fc; }
.perfil-btn span { font-size: 0.82rem; font-weight: 600; line-height: 1.35; text-align: center; }

/* Forms */
.form-section { display: none; animation: fadeSlideUp 0.35s var(--ease); }
.form-section.active { display: block; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius-pill);
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    outline: none;
    transition: all 0.3s var(--ease);
    font-family: inherit;
}

.input-group input::placeholder { color: rgba(255,255,255,0.28); }

.input-group input:focus {
    border-color: #00ddfb;
    background: rgba(0,229,255,0.07);
    color: white;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.14);
}

/* CTA Login */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #00ddfb 0%, #00b4d8 100%);
    color: #041a24;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 22px rgba(0,221,251,0.42);
    letter-spacing: 0.2px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,221,251,0.6);
}

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

.btn-gestor {
    background: linear-gradient(90deg, #9b59e8 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 22px rgba(130,40,230,0.42);
}

.btn-gestor:hover { box-shadow: 0 8px 30px rgba(130,40,230,0.6); }

/* Footer */
.login-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.42);
    z-index: 2;
    position: relative;
}

.login-footer a { transition: color 0.2s; }
.login-footer a:hover { color: rgba(255,255,255,0.75); }

.error-msg {
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: 14px;
    min-height: 18px;
}

/* Floating Icons */
.float-icon {
    position: absolute;
    width: 52px;
    height: 52px;
    background: rgba(10,18,55,0.5);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.75);
    animation: floatBounce 6s ease-in-out infinite;
}

.float-icon svg { width: 26px; height: 26px; }

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.icon-1 { top: 20%; left: 10%; border-color: rgba(160,80,230,0.65); color: #c084fc; animation-delay: 0s; }
.icon-2 { top: 46%; left: 6%; border-color: rgba(205,155,40,0.65); color: #e0a820; animation-delay: 1s; }
.icon-3 { bottom: 22%; left: 12%; border-color: rgba(0,200,255,0.3); color: rgba(200,230,255,0.65); animation-delay: 2s; }
.icon-4 { top: 17%; right: 10%; border-color: rgba(0,210,255,0.6); color: #00e5ff; animation-delay: 0.5s; }
.icon-5 { top: 46%; right: 6%; border-color: rgba(138,43,226,0.6); color: #c084fc; animation-delay: 1.5s; }
.icon-6 { bottom: 18%; right: 12%; border-color: rgba(0,210,255,0.5); color: #00e5ff; animation-delay: 2.5s; }

.sparkle-deco {
    position: absolute;
    bottom: 5%;
    right: 4%;
    font-size: 2rem;
    color: rgba(255,255,255,0.72);
    z-index: 1;
    text-shadow: 0 0 12px rgba(255,255,255,0.45);
    animation: sparkle-pulse 3s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.18) rotate(15deg); }
}


/* ═══════════════════════════════════════════════
   APP LAYOUT (SIDEBAR + MAIN)
   ═══════════════════════════════════════════════ */

.app-bg {
    min-height: 100vh;
    background: var(--bg-surface);
    color: var(--text-dark);
    display: flex;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s var(--ease);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,229,255,0.4));
}

.sidebar-brand {
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
}

.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-white);
}

.sidebar-link.active {
    background: rgba(0,229,255,0.12);
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-white);
}

.sidebar-user-name { color: var(--text-white); font-size: 0.85rem; font-weight: 600; }
.sidebar-user-role { color: var(--text-muted); font-size: 0.75rem; }

.sidebar-logout { color: #f87171 !important; }
.sidebar-logout:hover { background: rgba(248,113,113,0.1) !important; }

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: var(--bg-card);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-toggle {
    display: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--text-body);
}

.topbar-toggle svg { width: 20px; height: 20px; }

.topbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.topbar-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.topbar-actions { margin-left: auto; display: flex; gap: 16px; }

.topbar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
}

.topbar-stat-value { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
.topbar-stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }


/* ═══════════════════════════════════════════════
   KANBAN BOARD
   ═══════════════════════════════════════════════ */

.board-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    align-items: flex-start;
}

.kanban-column {
    flex: 0 0 320px;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--topbar-h) - 40px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease);
}

.kanban-column:hover { box-shadow: var(--shadow-md); }

.column-header {
    padding: 16px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: var(--text-white);
}

.column-header-left { display: flex; align-items: center; gap: 8px; }

.column-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.dot-amber { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.dot-green { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
.dot-blue { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.6); }

.header-aberto { background: linear-gradient(135deg, #ef4444, #dc2626); }
.header-andamento { background: linear-gradient(135deg, #f59e0b, #d97706); }
.header-resolvido { background: linear-gradient(135deg, #10b981, #059669); }
.header-resumo { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.badge-count {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
}

.badge-red { background: rgba(255,255,255,0.9); color: #ef4444; }
.badge-amber { background: rgba(255,255,255,0.9); color: #d97706; }
.badge-green { background: rgba(255,255,255,0.9); color: #059669; }

.column-body {
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.column-body::-webkit-scrollbar { width: 5px; }
.column-body::-webkit-scrollbar-track { background: transparent; }
.column-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ── Ticket Cards ── */
.ticket-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--text-muted);
    cursor: grab;
    transition: all 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.ticket-card:active { cursor: grabbing; }

.ticket-cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.ticket-content { padding: 14px; }

.ticket-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ticket-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.ticket-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--text-body);
    font-weight: 500;
}

.tag-urgency { color: var(--text-white); }
.tag-urgente { background: var(--urg-urgente); }
.tag-alta { background: var(--urg-alta); }
.tag-media { background: var(--urg-media); }
.tag-baixa { background: var(--urg-baixa); }
.tag-projeto { background: var(--urg-projeto); }
.tag-cost { background: #ecfdf5; color: #059669; font-weight: 600; }
.tag-media { background: #eff6ff; color: #3b82f6; }
.tag-resolved { color: var(--status-green); font-weight: 600; }

/* Urgency border colors */
.urgencia-urgente { border-left-color: var(--urg-urgente) !important; }
.urgencia-alta { border-left-color: var(--urg-alta) !important; }
.urgencia-media, .urgencia-média { border-left-color: var(--urg-media) !important; }
.urgencia-baixa { border-left-color: var(--urg-baixa) !important; }
.urgencia-projeto { border-left-color: var(--urg-projeto) !important; }

.prestador-badge {
    font-size: 0.72rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: #eef2ff;
    color: #4338ca;
    margin-top: 10px;
    border: 1px dashed #c7d2fe;
    line-height: 1.4;
}

/* Summary column */
.column-resumo {
    flex: 0 0 640px !important;
    background: var(--bg-card) !important;
    border: 1px solid #e2e8f0;
}

.body-resumo {
    flex-direction: row !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 24px !important;
    padding: 20px !important;
}

.chart-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
}

.chart-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    font-weight: 600;
}

.chart-wrapper { width: 100%; height: 170px; position: relative; }

.chart-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 14px;
}

.chart-divider {
    width: 1px;
    align-self: stretch;
    background: #f1f5f9;
}


/* ═══════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlide 0.3s var(--ease);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-drill-content { max-width: 850px; }

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }

.modal-close {
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: #e2e8f0; color: var(--text-dark); }

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s var(--ease);
}

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

/* Detail blocks inside modal */
.detail-block {
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.detail-block-gray { background: #f8fafc; }
.detail-block-blue { background: #eff6ff; }
.detail-block-green { background: #f0fdf4; border: 1px solid #bbf7d0; }

.detail-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.detail-value { font-weight: 500; color: var(--text-dark); }

/* Drill down table */
.drill-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.drill-table th { padding: 12px; background: #f8fafc; color: var(--text-muted); font-weight: 600; text-align: left; border-bottom: 2px solid #e2e8f0; }
.drill-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: var(--text-body); }
.drill-table small { color: var(--text-muted); font-size: 0.75rem; }


/* ═══════════════════════════════════════════════
   REPORTS PAGE
   ═══════════════════════════════════════════════ */

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 28px;
}

.report-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30%, -30%);
}

.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.report-card-blue { border-top-color: var(--accent-blue); }
.report-card-blue::before { background: var(--accent-blue); }
.report-card-green { border-top-color: var(--accent-emerald); }
.report-card-green::before { background: var(--accent-emerald); }

.report-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 10px 0;
}

.report-detail { font-size: 0.85rem; color: var(--text-muted); }
.report-cta { margin-top: 12px; font-size: 0.78rem; color: var(--accent-blue); font-weight: 600; }

/* Table Card */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 0 28px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.table-card h3 { color: var(--text-dark); margin-bottom: 20px; font-size: 1.05rem; }

.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
table th {
    padding: 14px;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-body);
    font-size: 0.92rem;
}

table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #fafbfd; }

.total-cell { color: #059669; font-weight: 700; }
.empty-cell { text-align: center; color: var(--text-muted); padding: 24px !important; }


/* ═══════════════════════════════════════════════
   MORADOR PAGE
   ═══════════════════════════════════════════════ */

.morador-bg {
    min-height: 100vh;
    background: var(--bg-surface);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.morador-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-white);
    padding: 28px 20px 20px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.morador-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.morador-greeting { font-size: 1.3rem; font-weight: 700; }
.morador-info { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.morador-logout {
    color: rgba(255,255,255,0.6);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.morador-logout:hover { color: #f87171; background: rgba(248,113,113,0.15); }

.morador-stats { display: flex; gap: 10px; }

.morador-stat-card {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.morador-stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.morador-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.morador-conteudo { padding: 20px; flex: 1; }

.section-title { margin-bottom: 16px; font-weight: 700; font-size: 1.05rem; color: var(--text-dark); }

.chamados-list { display: flex; flex-direction: column; gap: 12px; }

.chamado-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--text-muted);
    transition: all 0.2s var(--ease);
}

.chamado-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.chamado-top { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.chamado-id { font-weight: 500; }
.chamado-status { font-weight: 700; }
.chamado-category { font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; color: var(--text-dark); }
.chamado-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.4; }
.chamado-date { font-size: 0.72rem; color: var(--text-muted); }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state svg { margin: 0 auto 12px; color: #cbd5e1; }
.empty-state p { font-size: 0.95rem; }

/* FAB */
.btn-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: var(--bg-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,229,255,0.4);
    transition: all 0.3s var(--ease);
    z-index: 999;
}

.btn-fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 6px 30px rgba(0,229,255,0.6); }

/* Modal Novo Chamado */
.modal-novo-content {
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 30px;
    width: 90%;
    max-width: 450px;
    animation: modalSlide 0.3s var(--ease);
}

.modal-novo-title { color: var(--text-white); font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    color: var(--text-white);
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group select { appearance: none; }
.form-group select option { background: var(--bg-dark); }

.modal-novo-actions { display: flex; gap: 12px; }

.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover { background: rgba(255,255,255,0.05); }

.btn-submit {
    flex: 2;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: var(--bg-dark);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
    transition: all 0.2s;
}

.btn-submit:hover { box-shadow: 0 0 30px rgba(0,229,255,0.5); transform: translateY(-1px); }


/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s var(--ease);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.toast-success { background: linear-gradient(135deg, #059669, #10b981); }
.toast-error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.toast-warning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.toast-info { background: linear-gradient(135deg, #2563eb, #3b82f6); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-out {
    animation: toastOut 0.3s var(--ease) forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(80px); }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }

    .main-content { margin-left: 0; }
    .topbar-toggle { display: flex; }

    .board-container { padding: 12px; gap: 12px; }
    .kanban-column { flex: 0 0 280px; }
    .column-resumo { flex: 0 0 500px !important; }
}

@media (max-width: 768px) {
    .login-box { padding: 28px 24px 24px; }
    .hero-title { font-size: 1.5rem; }
    .float-icon { display: none; }
    .sparkle-deco { display: none; }

    .report-grid { padding: 16px; gap: 12px; }
    .table-card { margin: 0 16px 16px; }
}

@media (max-width: 480px) {
    .perfil-selector { gap: 8px; }
    .perfil-btn { padding: 14px 8px 12px; }
    .perfil-icon svg { width: 32px; height: 32px; }

    .morador-stats { gap: 6px; }
    .morador-stat-card { padding: 10px 6px; }
    .morador-stat-num { font-size: 1.2rem; }
}
