@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('custom-icon.css');

/**
 * mari.lu - Estilos do Painel Administrativo (Versão Simples)
 */

:root {
    /* Identidade "Creme & Vinho" — trocado do roxo genérico de SaaS pra algo com
       cara de confeitaria: fundo claro (creme) o dia todo, vinho/dourado só nos
       acentos (cabeçalho, botões, números), aprovado com o dono em 30/09/2026. */
    --primary-color: #7c2d42;
    --primary-dark: #4a1626;
    --primary-light: #a8506a;
    --primary-lighter: #f0dfe1;
    --secondary-color: #a8763f;
    --accent-color: #c9992f;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #2a1420;
    --light-color: #fbf7f0;
    --gray-50: #fbf7f0;
    --gray-100: #f5ece5;
    --gray-200: #ecdde0;
    --gray-300: #dcc3c9;
    --gray-400: #c99aa5;
    --gray-500: #a8506a;
    --gray-600: #8a3d54;
    --gray-700: #6b2d42;
    --gray-800: #4a1626;
    --gray-900: #2a0d16;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light-color);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main.container-fluid {
    flex: 1 0 auto;
    width: 100%;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.app-footer {
    flex-shrink: 0;
}

/* Navbar Moderno Lilás */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    box-shadow: 0 4px 20px rgba(124, 45, 66, 0.3);
    padding: 0.35rem 1rem;
    border-bottom: none;
    min-height: 58px;
    top: 0;
}

.navbar-elevated {
    margin-top: 0;
}

.navbar .container-fluid {
    gap: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: white !important;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 190px;
    line-height: 1;
    margin-right: 0.75rem;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 650;
    padding: 0.46rem 0.64rem;
    border-radius: 10px;
    transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    white-space: nowrap;
    line-height: 1.1;
    min-height: 38px;
}

.navbar-nav .nav-link i {
    font-size: 0.98rem;
    line-height: 1;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.15);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 8px 22px rgba(80, 33, 160, 0.18);
}

.navbar-collapse {
    align-items: center;
    gap: 0.75rem;
}

.app-main-nav,
.app-user-nav {
    align-items: center;
    gap: 0.15rem;
}

.app-user-nav {
    flex: 0 0 auto;
}

/* Dropdown Moderno */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(124, 45, 66, 0.2);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    margin-top: 0.25rem;
    min-width: 230px;
}

.dropdown-menu-lg {
    min-width: 290px;
}

.dropdown-item {
    padding: 0.58rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.12s ease, color 0.12s ease;
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-100) 100%);
    color: var(--primary-dark);
}

.dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Cards Modernos com Glassmorphism */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(124, 45, 66, 0.08);
    background: white;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(124, 45, 66, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0 !important;
    color: var(--primary-dark);
}

.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-warning,
.card-header.bg-info,
.card-header.bg-dark,
.card-header.bg-light {
    background-image: none;
}

.card-header.text-dark {
    color: #212529 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons Modernos */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(124, 45, 66, 0.3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(124, 45, 66, 0.4);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

/* Forms Modernos */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 45, 66, 0.15);
    outline: none;
}

.form-control:hover {
    border-color: var(--primary-light);
}

.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.85rem 2.5rem 0.85rem 1.25rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 45, 66, 0.15);
}

.form-floating label {
    color: var(--gray-500);
    font-weight: 500;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(124, 45, 66, 0.2);
}

.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 1.25rem;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

/* Tables Modernas */
.table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(124, 45, 66, 0.05);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(124, 45, 66, 0.05) 100%);
}

/* Badges Modernos */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge.bg-success { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge.bg-warning { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge.bg-danger { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge.bg-info { 
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.badge.bg-primary { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 2px 8px rgba(124, 45, 66, 0.3);
}

.badge.bg-secondary { 
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%) !important;
}

/* Alerts Modernos */
.alert {
    border: none;
    border-radius: 12px;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(124, 45, 66, 0.1) 0%, rgba(124, 45, 66, 0.05) 100%);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
}

/* Dashboard hero Moderno */
.dashboard-hero {
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(124, 45, 66, 0.08);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin-top: 0.5rem;
}

.hero-pill {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.hero-pill div {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: white;
    box-shadow: 0 4px 15px rgba(124, 45, 66, 0.05);
    transition: all 0.3s ease;
}

.hero-pill div:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 45, 66, 0.1);
    border-color: var(--primary-light);
}

.hero-pill i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-100) 100%);
    padding: 0.75rem;
    border-radius: 12px;
}

.hero-pill span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    font-weight: 600;
}

.hero-pill strong {
    display: block;
    font-size: 1.6rem;
    color: var(--dark-color);
    font-weight: 700;
}

.hero-pill small {
    color: var(--gray-400);
}

.hero-actions .btn {
    min-width: 160px;
    padding: 0.75rem 1.5rem;
}

.btn-ghost {
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
    color: var(--primary-dark);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: white;
    border: 2px solid var(--gray-200);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.link-chip:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 45, 66, 0.3);
}

/* Stat chips Modernos Lilás */
.stat-chip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    background: white;
    box-shadow: 0 4px 15px rgba(124, 45, 66, 0.05);
}

.stat-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 45, 66, 0.12);
    text-decoration: none;
    border-color: var(--primary-light);
}

.stat-chip-primary {
    border-color: var(--primary-lighter);
    background: linear-gradient(135deg, rgba(124, 45, 66, 0.08) 0%, rgba(124, 45, 66, 0.02) 100%);
}

.stat-chip-primary:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(124, 45, 66, 0.12) 0%, rgba(124, 45, 66, 0.05) 100%);
}

.stat-chip-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.stat-chip-danger:hover {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.stat-chip-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.stat-chip-warning:hover {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.stat-chip-success {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.stat-chip-success:hover {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.stat-chip:hover .stat-icon {
    transform: scale(1.05);
}

.stat-chip-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(124, 45, 66, 0.2);
}

.stat-chip-danger .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.3) 100%);
    color: var(--danger-color);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.stat-chip-warning .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.3) 100%);
    color: var(--warning-color);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.stat-chip-success .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.3) 100%);
    color: var(--success-color);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.stat-meta {
    flex: 1;
}

.stat-meta span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-meta strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.stat-meta small {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Agenda */
.agenda-list .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem;
}

.agenda-list .list-group-item:last-child {
    border-bottom: none;
}

.agenda-pill {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.agenda-mode {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.agenda-pill span:not(.agenda-mode) {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Empty states */
.empty-state-modern {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.empty-state-modern .icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state-modern h4 {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    font-size: 0.9rem;
    margin: 0;
}

/* Table modern */
.table-modern {
    font-size: 0.9rem;
}

.table-modern th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-50);
    border: none;
}

.table-modern td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table-modern .highlight {
    background: rgba(99, 102, 241, 0.05);
}

/* Panel cards */
.panel-card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    background: white;
}

.panel-card .card-header {
    background: linear-gradient(135deg, var(--gray-50), white);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

/* Brand panel */
.brand-panel {
    background: linear-gradient(135deg, var(--primary-light), white);
    border: 1px solid var(--primary-light);
}

.brand-panel .hero-title {
    color: var(--primary-dark);
}

/* Buttons extras */
.btn-ghost:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

/* Print button */
.btn-print {
    cursor: pointer;
}

.btn-print:hover {
    background: var(--gray-100);
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Section */
.dashboard-hero {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Utilities */
.text-muted {
    color: var(--gray-500) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    main.container-fluid {
        padding: 1rem;
    }
    
    .navbar {
        padding: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .dashboard-hero {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
    }

    .navbar-nav .nav-link {
        margin: 0.15rem 0;
        width: 100%;
        justify-content: flex-start;
    }

    .app-main-nav,
    .app-user-nav {
        align-items: stretch;
        gap: 0.2rem;
    }
}

@media (max-width: 1399.98px) {
    .brand-subtitle {
        display: none;
    }

    .navbar-brand {
        min-width: auto;
    }
}

@media (min-width: 992px) and (max-width: 1240px) {
    .navbar-nav .nav-link {
        padding-inline: 0.52rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
        margin-right: 0.25rem;
    }
}

/* Chat Avatar Images */
.chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Needs Attention Pulse */
.nav-link.needs-attention {
    position: relative;
}

.nav-link.needs-attention::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Order Alert Toast */
#global-order-alert {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Alert Container */
#alert-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1060;
    max-width: 400px;
}

#alert-container .alert {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* Brand subtitle */
.brand-subtitle {
    display: inline-block;
    font-size: 0.65rem;
    opacity: 0.75;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-left: 0.2rem;
    white-space: nowrap;
}

/* Chat badge in navbar */
#chatBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: pulse-dot 1.5s infinite;
}


/* ===== Alerta de novo pedido (toast + janela) ===== */
.order-alert-toast {
    position: fixed; right: 20px; bottom: 24px; z-index: 1080; width: min(360px, calc(100vw - 32px));
    animation: slideInRight .4s ease-out;
}
.order-alert-card {
    background: linear-gradient(135deg, #2a0d16 0%, #4a1626 55%, #7c2d42 100%);
    color: #fff; border-radius: 18px; padding: 16px 18px;
    box-shadow: 0 18px 50px rgba(42, 13, 22, .45), 0 0 0 3px rgba(212, 107, 114, .35);
}
.order-alert-body { display: flex; align-items: center; gap: 14px; }
.order-alert-icon {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #ffd9e2; animation: orderPulse 1.4s ease-in-out infinite;
}
.order-alert-info { min-width: 0; }
.order-alert-label { margin: 0; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #f6b8c4; font-weight: 700; }
.order-alert-title { display: block; font-size: 1.05rem; line-height: 1.25; }
.order-alert-info small { color: rgba(255, 255, 255, .78); display: block; }
.order-alert-actions { display: flex; gap: 8px; margin-top: 12px; }
.order-alert-actions .btn { flex: 1; border-radius: 10px; font-weight: 600; }
@keyframes orderPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 184, 196, .55); } 50% { box-shadow: 0 0 0 10px rgba(246, 184, 196, 0); } }

.order-alert-modal { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(42, 13, 22, .35); }
.order-alert-modal .modal-header {
    background: linear-gradient(135deg, #4a1626, #7c2d42); color: #fff; border: 0; padding: 20px 24px;
}
.order-alert-modal .modal-header .text-muted { color: rgba(255, 255, 255, .75) !important; }
.order-alert-modal .btn-close { filter: invert(1); }
.order-alert-modal .modal-eyebrow { margin: 0 0 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #f6b8c4; font-weight: 700; }
.order-alert-modal .modal-body { padding: 22px 24px; background: #fffaf6; }
.order-alert-modal .modal-footer { border: 0; background: #fffaf6; padding: 0 24px 22px; gap: 10px; }
.order-alert-modal .modal-footer .btn { padding: 12px 22px; border-radius: 12px; font-weight: 700; }
.order-modal-section { background: #fff; border: 1px solid #ecdcd0; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.order-modal-section h6 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #8a6f64; }
.order-modal-section p { margin: 0 0 4px; }
.order-items-list .list-group-item { background: transparent; padding-left: 0; padding-right: 0; }
.order-modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.order-modal-tag { background: #f6e3e8; color: #7c2d42; font-weight: 700; font-size: .75rem; padding: 3px 10px; border-radius: 999px; }
.order-modal-totals .row-line { display: flex; justify-content: space-between; color: #6f574d; }
.order-modal-totals .row-total { display: flex; justify-content: space-between; font-size: 1.35rem; font-weight: 800; color: #4a1626; margin-top: 4px; }

/* Aviso: o navegador bloqueia som até o primeiro clique na página */
#audio-unlock-pill {
    position: fixed; left: 16px; bottom: 16px; z-index: 1070; border: 0; cursor: pointer;
    background: #4a1626; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem;
    box-shadow: 0 10px 28px rgba(42, 13, 22, .35); display: none; align-items: center; gap: 8px;
    animation: orderPulse 2s ease-in-out infinite;
}
#audio-unlock-pill.show { display: inline-flex; }
