/* CSS Design System - Crystalline Water Dashboard & Field Simulator */

:root {
    /* Cores Principais */
    --color-bg-dark: #070913;
    --color-bg-card: rgba(18, 22, 41, 0.7);
    --color-border: rgba(255, 255, 255, 0.06);
    
    --color-primary: #0ea5e9; /* Sky Blue */
    --color-primary-glow: rgba(14, 165, 233, 0.15);
    
    --color-cyan: #06b6d4;
    --color-green: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
    --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================
   LAYOUT DO SIMULADOR CENTRALIZADO (DESKTOP)
   ========================================================== */
.app-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 30px;
    background: radial-gradient(circle at 50% 30%, #111429 0%, #05070e 100%);
}

.app-display-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.desktop-app-branding {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.branding-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    margin-bottom: 8px;
}

.branding-icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

.desktop-app-branding h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-app-branding p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================================
   SIMULADOR CELULAR (IPHONE MOCKUP)
   ========================================================== */
.phone-wrapper {
    position: relative;
    width: 375px;
    height: 760px;
    margin: 0 auto;
    flex-shrink: 0;
}

.phone-case {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #181d33;
    border-radius: 46px;
    padding: 10px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.8),
                inset 0 0 4px 2px rgba(255,255,255,0.1),
                0 0 0 4px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #090c16;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Status Bar */
.phone-status-bar {
    height: 38px;
    padding: 12px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 90;
    background: #090c16;
}

.phone-status-bar .icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.phone-status-bar .status-icon {
    width: 14px;
    height: 14px;
}

/* ==========================================================
   APP HEADER
   ========================================================== */
.app-header {
    height: 64px;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    background: rgba(9, 12, 22, 0.85);
    backdrop-filter: blur(10px);
    z-index: 80;
}

.app-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.app-profile .greeting {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-profile .sub-greeting {
    font-size: 11px;
    color: var(--text-secondary);
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-green);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.dot-blink {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-green);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ==========================================================
   APP CONTENT (SCROLLABLE CONTAINER)
   ========================================================== */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px; /* Space for navbar */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hide default scrollbar inside phone screen */
.app-content::-webkit-scrollbar {
    display: none;
}

/* Tab display toggling */
.app-tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.app-tab-content.active {
    display: flex;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.period-select {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
}

/* ==========================================================
   KPI METRIC CARDS
   ========================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.metric-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-card .card-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    align-items: center;
}

.metric-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0;
    letter-spacing: -0.5px;
}

.metric-card .card-footer {
    font-size: 10px;
    color: var(--text-muted);
}

.text-green { color: var(--color-green); }
.text-blue { color: var(--color-primary); }
.text-cyan { color: var(--color-cyan); }

/* ==========================================================
   CHARTS & CONTAINERS
   ========================================================== */
.chart-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================
   RANKING LIST
   ========================================================== */
.ranking-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ranking-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}

.ranking-value {
    color: var(--text-primary);
}

.ranking-bar-wrapper {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.ranking-bar {
    height: 100%;
    border-radius: 10px;
}

/* ==========================================================
   SEARCH BAR
   ========================================================== */
.search-bar {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px 10px 38px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.15);
}

/* ==========================================================
   OS & CLIENT LISTS
   ========================================================== */
.os-list, .client-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-item-card, .client-item-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.os-item-card:hover, .client-item-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(18, 22, 41, 0.9);
}

.os-header-row, .client-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.os-id {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.os-status-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
}

.os-status-badge.faturada {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-green);
}

.os-status-badge.cancelada {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
}

.os-status-badge.elaboracao {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.os-client-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.os-service-brief {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.os-footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 6px;
    margin-top: 2px;
}

.os-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
}

/* Badge tags in lists */
.badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
}

.badge-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--color-primary);
}

.badge-tag.fornecedor {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.client-phone {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================
   TÉCNICO / FIELD APP PANEL
   ========================================================== */
.field-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-job-card {
    background: linear-gradient(135deg, #0e1e38 0%, #091122 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-glow);
}

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

.job-tag.active {
    font-size: 9px;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 3px 8px;
    border-radius: 50px;
}

.job-number {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.field-job-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.job-address {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-address i {
    width: 12px;
    height: 12px;
    color: var(--color-danger);
}

.job-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

.job-service {
    font-size: 11px;
    color: var(--text-secondary);
}

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.checklist-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.field-input {
    width: 100%;
    background: rgba(9, 12, 22, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}

.field-input:focus {
    border-color: var(--color-primary);
}

.photo-upload-box {
    border: 1px dashed rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.03);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 600;
}

.photo-upload-box i {
    width: 20px;
    height: 20px;
}

/* Signature Area */
.signature-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signature-pad {
    height: 100px;
    background: rgba(9, 12, 22, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.signature-placeholder {
    font-size: 11px;
    color: var(--text-muted);
}

.simulated-sig-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sig-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
}

.sig-btn {
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.sig-btn.clear {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--text-secondary);
}

.sig-btn.sign {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--color-primary);
}

.btn-sync-omie {
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    margin-top: 10px;
}

.btn-sync-omie i {
    width: 16px;
    height: 16px;
}

/* ==========================================================
   APP NAV BAR (BOTTOM)
   ========================================================== */
.app-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(9, 12, 22, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--color-primary);
}

/* ==========================================================
   MODAL DIALOG (DETAILS)
   ========================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #0d1021;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    width: 100%;
    max-width: 340px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
}

.close-btn i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.modal-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.modal-text-row {
    display: flex;
    justify-content: space-between;
    line-height: 1.5;
}

.modal-label {
    color: var(--text-secondary);
}

.modal-val {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-desc-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ==========================================================
   NEW STYLES: FILTER TABS & BI GRAPHICS
   ========================================================== */
.filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-top: 4px;
    width: 100%;
}

.filter-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    outline: none;
    text-align: center;
}

.filter-tab-btn.active {
    background: var(--color-primary-glow);
    color: var(--color-primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.bi-charts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.chart-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.chart-badge-val {
    font-size: 10px;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 50px;
}

/* ==========================================================
   MOBILE LOGIN SCREEN STYLES
   ========================================================== */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    height: calc(100% - 24px); /* Subtract status bar height */
    width: 100%;
    animation: fadeIn 0.4s ease;
    z-index: 10;
}

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

.login-logo-container {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.login-logo i {
    width: 24px;
    height: 24px;
    color: #fff;
}

.login-logo-container h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.login-logo-container p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.input-icon-wrapper .field-input {
    padding-left: 36px;
}

.btn-login {
    background: linear-gradient(135deg, var(--color-primary), #06b6d4);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    margin-top: 8px;
    outline: none;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.btn-login i {
    width: 16px;
    height: 16px;
}

.login-error-message {
    color: var(--color-danger);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.login-hint {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.login-hint code {
    background: rgba(255,255,255,0.05);
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--color-primary);
}

.app-main-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: calc(100% - 38px);
    overflow: hidden;
    position: relative;
}

/* ==========================================================
   PREMIUM BI DASHBOARD STYLES
   ========================================================== */
.bi-spark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.bi-spark-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.spark-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spark-info span {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.spark-info h4 {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.sparkline-canvas-container {
    width: 60px;
    height: 24px;
}

.bi-rings-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ring-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    backdrop-filter: blur(10px);
}

.ring-container {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    stroke-dasharray: none;
}

.progress-ring-bar {
    transition: stroke-dashoffset 0.5s ease-in-out;
}

.ring-percentage {
    position: absolute;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.ring-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ring-label h5 {
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.ring-label p {
    font-size: 9.5px;
    color: var(--text-muted);
}

.report-table-wrapper {
    width: 100%;
    margin-top: 6px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
}

.report-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 700;
    padding: 6px 8px;
    border-bottom: 1px solid var(--color-border);
    font-size: 9.5px;
    text-transform: uppercase;
}

.report-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.report-table tr:hover td {
    color: #fff;
    background: rgba(255, 255, 255, 0.01);
}

.report-table tr td:first-child {
    font-weight: 700;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

