/**
 * BarberShop Pro - Estilos Principais
 * Sistema de Barbearia
 */

/* ===== Ícones - Tamanhos ===== */
[class^="lucide-"], [class*=" lucide-"] {
    font-size: inherit;
    line-height: 1;
}

.quick-icon i,
.cta-icon i,
.stat-icon i,
.revenue-icon i {
    font-size: 1.3em;
}

.section-title i {
    font-size: 1.1em;
}

/* ===== CSS Variables ===== */
:root {
    --color-primary: #1a1a2e;
    --color-secondary: #D4AF37;
    --color-accent: #0f3460;
    --color-text: #ffffff;
    --color-text-dark: #333333;
    --color-text-muted: #6c757d;
    --color-bg: #0f0f1a;
    --color-bg-light: #f8f9fa;
    --color-bg-card: #16213e;
    --color-border: #2a2a4a;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;

    --gradient-primary: linear-gradient(135deg, #8C6B1F 0%, var(--color-secondary) 38%, #F2C94C 100%);
    --gradient-success: linear-gradient(135deg, #0f6a3d 0%, #28a745 55%, #49d17d 100%);
    --gradient-warning: linear-gradient(135deg, #c47f00 0%, var(--color-warning) 55%, #F2C94C 100%);
    --gradient-danger: linear-gradient(135deg, #b5192b 0%, var(--color-danger) 55%, #ff5a7a 100%);
    --gradient-info: linear-gradient(135deg, #0b6b77 0%, var(--color-info) 55%, #2bbbd8 100%);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    --radius: 16px;
    --radius-sm: var(--radius);
    --radius-md: var(--radius);
    --radius-lg: var(--radius);
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body.light-theme {
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-bg-card: #f8f9fa;
    --color-border: #dee2e6;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #F2C94C;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 600px;
}

.container-md {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.text-display {
    font-family: var(--font-display);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info); }
.text-primary { color: var(--color-secondary); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    background-position: 100% 50%;
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-accent);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--color-secondary);
    color: #fff;
}

.btn-success { background: var(--gradient-success); background-size: 200% 200%; background-position: 0% 50%; color: #fff; }
.btn-warning { background: var(--gradient-warning); background-size: 200% 200%; background-position: 0% 50%; color: #333; }
.btn-danger { background: var(--gradient-danger); background-size: 200% 200%; background-position: 0% 50%; color: #fff; }
.btn-info { background: var(--gradient-info); background-size: 200% 200%; background-position: 0% 50%; color: #fff; }

.btn-success:hover:not(:disabled),
.btn-warning:hover:not(:disabled),
.btn-danger:hover:not(:disabled),
.btn-info:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    background-position: 100% 50%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--color-border);
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-label.required::after {
    content: '*';
    color: var(--color-danger);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-secondary);
    cursor: pointer;
}

.form-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.form-error {
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 6px;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .form-control:last-child,
.input-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group .btn {
    border-radius: 0;
}

/* ===== Cards ===== */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.card-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--color-border);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
    background: rgba(212, 175, 55, 0.1);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Avatar Link na Navbar */
.nav-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-secondary);
    transition: var(--transition);
}

.nav-avatar-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.nav-notif-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-bg-card);
    transition: var(--transition);
}

.nav-notif-link:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-1px);
}

.nav-notif-wrap {
    position: relative;
}

.nav-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 420px;
    overflow: auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    display: none;
}

.nav-notif-wrap.open .nav-notif-dropdown {
    display: block;
}

.nav-notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.nav-notif-list {
    display: flex;
    flex-direction: column;
}

.nav-notif-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
}

.nav-notif-item:hover {
    background: rgba(212, 175, 55, 0.08);
}

.nav-notif-item.unread {
    background: rgba(212, 175, 55, 0.12);
}

.nav-notif-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.nav-notif-item-msg {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.nav-notif-empty {
    padding: 16px 12px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.nav-notif-all {
    display: block;
    text-align: center;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--color-secondary);
    border-top: 1px solid var(--color-border);
}

.nav-notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--color-bg);
}

/* Botão Outline Light */
.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--color-text);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Brand Icon */
.brand-icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-right: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--color-text);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

.notification-badge {
    background: var(--color-danger);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: auto;
}

.notification-badge:empty {
    display: none;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    padding-top: 80px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--color-secondary);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 600px;
    opacity: 0.8;
}

/* ===== Section ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Services ===== */
.service-card {
    text-align: center;
    padding: 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-secondary), #F2C94C);
    border-radius: var(--radius-full);
    font-size: 2rem;
    color: #fff;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 15px;
}

.service-duration {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== Team/Barbers ===== */
.barber-card {
    text-align: center;
}

.barber-img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--color-secondary);
}

.barber-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.barber-specialty {
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.barber-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--color-warning);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--color-text-muted);
}

.footer-section ul a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border-radius: var(--radius-full);
    color: var(--color-text);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--color-secondary);
    margin-top: 4px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--color-border);
}

.hours-list li.closed {
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.footer-bottom .credits {
    margin-top: 10px;
    font-size: 0.875rem;
}

.footer-bottom .credits i {
    color: var(--color-secondary);
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.bg-primary { background: var(--color-secondary); color: #fff; }
.bg-success { background: var(--color-success); color: #fff; }
.bg-warning { background: var(--color-warning); color: #333; }
.bg-danger { background: var(--color-danger); color: #fff; }
.bg-info { background: var(--color-info); color: #fff; }
.bg-secondary { background: var(--color-text-muted); color: #fff; }

/* ===== Tables ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    background: rgba(0,0,0,0.2);
    font-weight: 600;
    white-space: nowrap;
}

.table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid var(--color-border);
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-info);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.success { border-color: var(--color-success); }
.toast.error { border-color: var(--color-danger); }
.toast.warning { border-color: var(--color-warning); }

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

/* ===== PWA Install Prompt ===== */
.install-prompt {
    position: fixed;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    background: linear-gradient(145deg, #090909 0%, #13110b 100%);
    border: 1px solid rgba(218, 177, 93, 0.55);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.45), 0 0 0 2px rgba(218,177,93,0.1) inset;
    z-index: 2000;
    overflow: hidden;
    animation: slideUp 0.35s ease;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.install-prompt-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #8f6a25, #e7c781);
    box-shadow: 0 8px 16px rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.install-prompt-icon i {
    font-size: 1.45rem;
    color: #201404;
}

.install-prompt-text {
    flex: 1;
    min-width: 0;
}

.install-prompt-text strong {
    display: block;
    color: #fff5de;
    font-size: 1.05rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.install-prompt-text p {
    font-size: 0.84rem;
    color: rgba(238, 213, 167, 0.84);
    margin: 0;
    line-height: 1.3;
    max-width: 22ch;
}

.install-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-prompt-actions .btn-primary {
    background: linear-gradient(140deg, #c7943d, #f0cb84);
    color: #2b1a04;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 18px;
    min-width: 98px;
}

.install-prompt-actions .btn-primary:hover {
    filter: brightness(1.05);
}

.install-prompt-actions .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(218, 177, 93, 0.55);
    background: rgba(218, 177, 93, 0.08);
    color: #d9b164;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.install-prompt-actions .btn-icon:hover {
    background: rgba(218, 177, 93, 0.16);
}

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

@media (max-width: 560px) {
    .install-prompt {
        left: 12px;
        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        border-radius: 16px;
    }

    .install-prompt-content {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 10px 12px;
        padding: 12px;
    }

    .install-prompt-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        grid-row: 1 / 3;
    }

    .install-prompt-text p {
        max-width: none;
    }

    .install-prompt-actions {
        justify-content: flex-start;
    }

    .install-prompt-actions .btn-primary {
        min-width: 104px;
        padding: 9px 16px;
    }
}

/* ===== Chat/Assistant ===== */
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-secondary), #F2C94C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--color-accent);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--color-secondary);
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chat-option {
    padding: 10px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.chat-option:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.chat-option.selected {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.chat-input-area {
    padding: 20px;
    background: var(--color-primary);
    border-top: 1px solid var(--color-border);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
}

.chat-send {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send:hover {
    transform: scale(1.05);
}

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

/* ===== Typing indicator ===== */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* ===== Dashboard ===== */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background: var(--color-primary);
    border-right: 1px solid var(--color-border);
    padding: 30px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-nav {
    padding: 0 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--color-text);
    border-radius: var(--radius-md);
    margin-bottom: 5px;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-secondary);
}

.sidebar-link i {
    font-size: 1.25rem;
}

.sidebar-section {
    padding: 20px 15px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.dashboard-content {
    padding: 30px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--color-border);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.stat-card-icon.primary { background: rgba(212, 175, 55, 0.2); color: var(--color-secondary); }
.stat-card-icon.success { background: rgba(40, 167, 69, 0.2); color: var(--color-success); }
.stat-card-icon.warning { background: rgba(255, 193, 7, 0.2); color: var(--color-warning); }
.stat-card-icon.info { background: rgba(23, 162, 184, 0.2); color: var(--color-info); }

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.stat-card-change {
    font-size: 0.875rem;
    margin-top: 10px;
}

.stat-card-change.positive { color: var(--color-success); }
.stat-card-change.negative { color: var(--color-danger); }

/* ===== Calendar ===== */
.calendar {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--color-primary);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-name {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    background: rgba(0,0,0,0.2);
    font-size: 0.875rem;
}

.calendar-day {
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.1);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: rgba(212, 175, 55, 0.2);
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 3px 6px;
    background: var(--color-secondary);
    border-radius: var(--radius-sm);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1001;
        padding-top: 20px;
    }
    
    .sidebar.active {
        display: block;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .dashboard-content {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container { padding: 0 15px; }
    
    .hero { 
        min-height: auto; 
        padding: 100px 0 60px;
    }
    .hero-title { font-size: 2rem; }
    .hero-text { font-size: 1rem; }
    .hero-image { display: none; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .navbar { padding: 12px 0; }

    /* Esconder hamburger */
    .navbar-toggle { display: none !important; }

    /* Navbar menu fica inline, sem menu lateral */
    .navbar-menu {
        display: flex !important;
        align-items: center;
        gap: 10px;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0;
        flex-direction: row;
        overflow: visible;
    }

    /* Esconder links de texto no mobile */
    .navbar-menu .nav-link { display: none; }
    .navbar-menu .btn { display: none; }

    /* Notificação e avatar visíveis */
    .nav-notif-wrap { width: auto; }
    .nav-notif-link {
        width: 40px; height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    .nav-notif-dropdown {
        position: absolute;
        right: 0;
        width: 300px;
        margin-top: 0;
        box-shadow: var(--shadow-lg);
    }
    .nav-avatar-wrap { width: auto; }
    .nav-avatar-dropdown { right: 0; }
    
    .section { padding: 40px 0; }
    .section-title { font-size: 1.75rem; }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn { 
        width: 100%; 
        padding: 14px 20px;
    }
    
    .btn-sm {
        padding: 10px 16px;
    }
    
    .card-body { padding: 15px; }
    
    .main-content { padding-top: 60px; }
    
    /* Mobile Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header .btn {
        width: 100%;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    /* Mobile Forms */
    .form-group { margin-bottom: 15px; }
    .form-control { padding: 14px 16px; }
    
    /* Mobile Tables */
    .table th, .table td {
        padding: 10px 8px;
        font-size: 0.875rem;
    }
    
    /* Mobile Chat */
    .chat-container {
        height: calc(100vh - 120px);
        border-radius: 0;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    /* Mobile Footer */
    .footer { padding: 40px 0 20px; }
    .footer-section { text-align: center; }
    .social-links { justify-content: center; }
    .contact-info li { justify-content: center; }
    
    /* Hide on mobile */
    .hide-mobile { display: none !important; }
}

/* Footer */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .footer {
        padding-bottom: 100px; /* Espaço para o menu mobile */
    }
}

/* Mobile Bottom Navigation for Dashboards */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    text-decoration: none;
    flex: 1;
    transition: var(--transition);
}

.mobile-bottom-nav a i {
    font-size: 1.2rem;
}

.mobile-bottom-nav a.active {
    color: var(--color-secondary);
}

.mobile-bottom-nav a.active i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

/* Dashboard Barbeiro Custom */
.bp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.bp-user { display: flex; align-items: center; gap: 12px; }
.bp-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--color-bg-card); display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid var(--color-secondary); }
.bp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-head h1 { font-size: 1.5rem; margin: 0; }
.bp-head small { color: var(--color-text-muted); display: block; }
.bp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-size: 0.9rem; }
.bp-btn-primary { background: var(--gradient-primary); background-size: 200% 200%; background-position: 0% 50%; color: #fff; }
.bp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.25); background-position: 100% 50%; }

/* Status Badges e Botões no Dashboard */
.bp-btn-green { background: var(--gradient-success); background-size: 200% 200%; background-position: 0% 50%; color: #fff; }
.bp-btn-blue { background: #007bff; color: #fff; }
.bp-btn-red { background: var(--gradient-danger); background-size: 200% 200%; background-position: 0% 50%; color: #fff; }
.bp-btn-ghost { background: rgba(255,255,255,0.05); color: var(--color-text); }
.bp-btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.bp-btn-green:hover,
.bp-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    background-position: 100% 50%;
}

@media (max-width: 480px) {
    .bp-head { flex-direction: column; align-items: flex-start; }
    .bp-head-actions { width: 100%; }
    .bp-head-actions .bp-btn { width: 100%; justify-content: center; }
}

/* ===== Utilities ===== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.w-100 { width: 100%; }

.h-100 { height: 100%; }
