
:root {
    --primary: #1e3a8a;

    --primary-dark: #0f172a;

    --primary-light: #2563eb;

    --accent: #3b82f6;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --bg-page: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-input: #cbd5e1;
    --nav-height: 64px;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.2);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    padding-top: 0;
    -webkit-font-smoothing: antialiased;
}


.page {
    display: none;
}

.page.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3vh 1rem;
    min-height: 100vh;
    animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.page#home.active {
    display: block;
    padding: 0;
    min-height: 100vh;
}


.container,
.container2 {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.container h1,
.app-modal h1 {
    margin: 0 0 1.75rem;
    font-size: 1.65rem;
    text-align: center;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.container h1::after,
.app-modal h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}


.container form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-input);
    border-radius: 10px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover,
.form-control:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 85px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

button {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 84px;
}

.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #e2e8f0;
    color: #334155;
    box-shadow: none;
    font-weight: 500;
}

.toggle-password:hover {
    background: #cbd5e1;
    color: #0f172a;
    transform: translateY(-50%);
    box-shadow: none;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1200;
    backdrop-filter: blur(4px);
}

.modal-overlay.show,
.modal-overlay.visible {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.app-modal {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
}

.app-modal h1 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 10px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.app-modal h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.app-modal .modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.app-modal .modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.app-modal .modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.app-modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-modal label.small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-top: 4px;
    margin-bottom: 2px;
    text-align: left;
}

.app-modal input[type="file"] {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s ease;
}

.app-modal input[type="file"]:hover {
    border-color: var(--primary-light);
    background: #ffffff;
}


.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: #ffffff;
    border-left: 4px solid var(--primary-light);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}


#map {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


.search-box-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 40px);
    max-width: 520px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 6px 6px 6px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    transition: all 0.3s ease;
}

.search-box-container:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.22);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    position: relative;
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

#inputBairro {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-main);
    width: 100%;
    outline: none;
    box-shadow: none !important;
}

#inputBairro::placeholder {
    color: #94a3b8;
}

.btn-clear-search {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    box-shadow: none;
    transition: color 0.2s ease;
}

.btn-clear-search:hover {
    color: var(--danger);
    background: transparent;
    transform: none;
}

.search-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}


.suggestions-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    list-style: none;
    padding: 6px;
    margin: 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
    display: none;
    z-index: 1005;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f1f5f9;
    color: var(--primary-light);
}

.suggestion-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.3;
}

.suggestion-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}

.suggestion-sub {
    font-size: 0.8rem;
    color: #64748b;
}


#recenterBtn, #profileBtn, #reportsBtn, #adminBtn, #newOcorrenciaBtn, #logoutBtn {
    pointer-events: auto !important;
    z-index: 1005 !important;
}

#recenterBtn {
    position: absolute;
    top: 20px;
    right: 76px;
    z-index: 1005 !important;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

#recenterBtn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

#recenterBtn:active {
    transform: translateY(0);
}

#profileBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

#profileBtn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

#profileBtn:active {
    transform: translateY(0);
}

#newOcorrenciaBtn {
    position: absolute;
    bottom: 25px;
    right: 20px;
    z-index: 1002;
    display: none;
    padding: 13px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.25s ease;
}

#newOcorrenciaBtn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

#newOcorrenciaBtn:active {
    transform: translateY(-1px);
}

#logoutBtn {
    position: absolute;
    bottom: 25px;
    left: 20px;
    z-index: 1002;
    display: none;
    padding: 11px 20px;
    border-radius: 50px;
    background: #ffffff;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #fee2e2;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

#logoutBtn:hover {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.3);
}

#logoutBtn:active {
    transform: translateY(0);
}

.small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}


@media (max-width: 640px) {
    .search-box-container {
        top: 12px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px) !important;
        transform: none !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding: 5px 6px 5px 12px;
    }

    .search-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    #profileBtn {
        top: 72px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    #recenterBtn {
        top: 120px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    #reportsBtn {
        top: 74px !important;
        left: 12px !important;
        right: auto !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        align-items: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        width: max-content !important;
    }

    #adminBtn {
        top: 126px !important;
        left: 12px !important;
        right: auto !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        align-items: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
        width: max-content !important;
    }

    #newOcorrenciaBtn {
        bottom: 18px;
        right: 12px;
        height: 46px;
        padding: 0 18px;
        font-size: 0.88rem;
        font-weight: 600;
        border-radius: 30px;
    }

    #logoutBtn {
        bottom: 18px;
        left: 12px;
        height: 44px;
        padding: 0 16px;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 30px;
    }

    .container,
    .container2 {
        padding: 1.75rem 1.25rem;
        margin: 0 12px;
    }
}


.profile-card-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.profile-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    z-index: 0;
}

.profile-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    border: 4px solid #ffffff;
    margin-top: 10px;
    margin-bottom: 8px;
}

#profileDisplayName {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 4px 0 2px;
    letter-spacing: -0.3px;
}

.profile-badge-email {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-section-title svg {
    color: #2563eb;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.profile-field.full-width {
    grid-column: span 2;
}

.profile-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-field input {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.profile-field input:disabled {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    opacity: 1;
    cursor: default;
}

.profile-field input:not(:disabled) {
    background: #ffffff;
    border: 1.5px solid #2563eb;
    color: #0f172a;
    font-weight: 500;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
}

.btn-profile-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
    transition: all 0.2s ease;
}

.btn-profile-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.btn-profile-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-profile-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-profile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #fecdd3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-profile-logout:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

@media (max-width: 500px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-field.full-width {
        grid-column: span 1;
    }
}


#reportsBtn, #adminBtn {
    position: absolute;
    top: 76px;
    z-index: 1005;
    padding: 0 16px;
    height: 46px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--primary-light);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#reportsBtn {
    right: 20px;
    top: 76px;
}

#adminBtn {
    right: 150px;
    top: 76px;
}

#reportsBtn:hover, #adminBtn:hover {
    background: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
}


.dashboard-container {
    max-width: 900px;
    width: 95%;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-color);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-header h2 {
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0;
}

.dashboard-header .subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.dashboard-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.kpi-card .kpi-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.kpi-card .kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}

.kpi-card.warning { border-left: 4px solid #f59e0b; }
.kpi-card.info { border-left: 4px solid #3b82f6; }
.kpi-card.success { border-left: 4px solid #10b981; }

.filter-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.filter-bar select, .filter-bar input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
}

.reports-grid, .users-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.report-card, .user-admin-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.report-card:hover, .user-admin-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-category {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.warning { background: #fef3c7; color: #b45309; }
.status-badge.info { background: #dbeafe; color: #1d4ed8; }
.status-badge.success { background: #d1fae5; color: #047857; }

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 6px;
}

.badge-cliente { background: #e2e8f0; color: #475569; }
.badge-funcionario { background: #dbeafe; color: #1d4ed8; }
.badge-admin { background: #fef3c7; color: #b45309; }

.select-status-inline {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    background: #ffffff;
    cursor: pointer;
}

.btn-save-status {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--primary-light);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.btn-save-status:hover {
    background: var(--primary-dark);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.user-admin-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.user-admin-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
}

.user-admin-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    .dashboard-container {
        padding: 18px 14px;
        margin: 12px auto;
        width: 95%;
        border-radius: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-header .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 0.9rem;
    }

    .user-admin-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .user-admin-action {
        align-items: stretch;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }

    .user-admin-action > div {
        width: 100%;
    }

    .user-admin-action .select-status-inline {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        padding: 9px 10px;
    }

    .user-admin-action .btn-save-user-role {
        padding: 9px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}


.custom-ocorrencia-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin-wrapper {
    position: relative;
    width: 36px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marker-pin-wrapper:hover {
    transform: scale(1.22) translateY(-4px);
    z-index: 99999 !important;
}

.marker-pin-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--marker-bg, #2563eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2.5px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-emoji {
    font-size: 19px;
    line-height: 1;
    user-select: none;
}

.marker-pin-tip {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--marker-bg, #2563eb);
    margin-top: -2px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

/* Modal de Ocorrência Expandida / Tela Inteira */
.modal-overlay .ocorrencia-fullscreen-card {
    max-width: 720px;
    width: 94%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ocorrencia-fullscreen-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ocorrencia-fullscreen-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 2.5px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ocorrencia-fullscreen-title-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ocorrencia-fullscreen-title-box h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.ocorrencia-fullscreen-body {
    padding: 24px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(90vh - 140px);
}

.detalhe-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
}

.detalhe-section h3 {
    margin: 0 0 10px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhe-descricao {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
}

.detalhe-media-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    max-height: 380px;
}

.detalhe-media-full {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
}

.detalhe-empty-media {
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 20px;
    text-align: center;
    background: #f1f5f9;
    width: 100%;
    border-radius: 8px;
}

.detalhe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detalhe-item.full-width {
    grid-column: span 2;
}

.detalhe-item strong {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detalhe-item span {
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 600;
}

.resolucao-section {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.resolucao-section h3 {
    color: #166534;
}

.ocorrencia-fullscreen-footer {
    padding: 16px 26px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .modal-overlay .ocorrencia-fullscreen-card {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .ocorrencia-fullscreen-body {
        padding: 16px;
        max-height: calc(100vh - 130px);
    }
    .detalhe-grid {
        grid-template-columns: 1fr;
    }
    .detalhe-item.full-width {
        grid-column: span 1;
    }
}