/* =============================================
   EVOLUA CHECK-IN - Design System Global
   Mobile-First Responsive Stylesheet
   ============================================= */

:root {
    --primary: #1E88E5;
    --primary-dark: #1565C0;
    --border-radius-card: 16px;
    --border-radius-sm: 8px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.18s ease;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* ── Utilitários de cursor ── */
.cursor-pointer {
    cursor: pointer;
}

/* ── Erro do Blazor ── */
#blazor-error-ui {
    background: #ffe0e0;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ─────────────────────────────────────────────
   ADMIN PAGE - Layout compartilhado entre
   todas as páginas admin (global para não duplicar)
   ───────────────────────────────────────────── */

.admin-page {
    padding: 20px 16px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.admin-page-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.admin-page-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-page-title {
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.admin-page-subtitle {
    opacity: 0.5;
    font-size: 0.8rem !important;
}

.admin-add-btn {
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
    gap: 8px;
}

@media (max-width: 599px) {
    .admin-page {
        padding: 14px 10px 24px;
    }

    .admin-page-header {
        margin-bottom: 16px;
    }
}

