/* ===================================
   FERNANDA NUNES ESPAÇO DA BELEZA
   Estilo Principal - Design Sofisticado
   =================================== */

/* === VARIÁVEIS CSS === */
:root {
    /* Paleta de Cores Principal */
    --rose-gold: #D4AF87;
    --rose-gold-dark: #B8956F;
    --rose-gold-light: #E8D4B8;
    --white: #FFFFFF;
    --black-soft: #2C2C2C;
    --gray-dark: #4A4A4A;
    --gray-medium: #8A8A8A;
    --gray-light: #F5F5F5;
    
    /* Gradientes */
    --gradient-gold: linear-gradient(135deg, #D4AF87 0%, #C9A68A 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(212, 175, 135, 0.9) 0%, rgba(44, 44, 44, 0.7) 100%);
    
    /* Tipografia */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transições */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 175, 135, 0.3);
}

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--black-soft);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black-soft);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: var(--gray-dark);
}

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

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

/* === CONTAINERS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

/* === HEADER / NAVEGAÇÃO === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar {
    padding: 1rem 0;
}

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

/* Logo */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-fernanda {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--rose-gold);
    line-height: 1;
}

.logo-nunes {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--black-soft);
    margin-top: -0.2rem;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--gray-medium);
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--rose-gold);
}

/* Botão CTA no Header */
.btn-cta {
    background: var(--gradient-gold);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 135, 0.4);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--black-soft);
    transition: var(--transition-smooth);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(212, 175, 135, 0.2) 0%, rgba(44, 44, 44, 0.3) 100%),
        url('https://images.unsplash.com/photo-1522337660859-02fbefca4702?w=1600&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    display: flex;
    flex-direction: column;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.hero-title-top {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-title-main {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8D4B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--white);
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0%, 100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    50% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BOTÕES === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 135, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--rose-gold);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--rose-gold);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--rose-gold);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* === ANIMAÇÕES === */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

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

/* === SEÇÕES === */
section {
    padding: var(--spacing-xl) 0;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-gold);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: var(--spacing-md);
    color: var(--black-soft);
}

.section-description {
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

/* === INTRO SECTION === */
.intro-section {
    background: var(--gray-light);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.intro-text {
    padding-right: var(--spacing-md);
}

.intro-text .section-description {
    margin: 0 0 1.5rem 0;
    max-width: none;
}

.intro-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--rose-gold);
    border-radius: 8px;
    z-index: -1;
}

/* === SERVIÇOS EM DESTAQUE === */
.featured-services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 135, 0.2);
    transition: var(--transition-smooth);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--rose-gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-spring);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--black-soft);
}

.service-description {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rose-gold);
    font-weight: 500;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 0.8rem;
}

/* === BENEFÍCIOS === */
.benefits-section {
    background: var(--gradient-gold);
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-md);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.benefit-item h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* === CTA SECTION === */
.cta-section {
    background: 
        linear-gradient(135deg, rgba(212, 175, 135, 0.95) 0%, rgba(44, 44, 44, 0.95) 100%),
        url('https://images.unsplash.com/photo-1559599101-f09722fb4948?w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

/* === FOOTER === */
.footer {
    background: var(--black-soft);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-fernanda,
.footer-logo .logo-nunes,
.footer-logo .logo-subtitle {
    display: block;
}

.footer-logo .logo-nunes {
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 135, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--rose-gold);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--rose-gold);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--rose-gold);
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.admin-link {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.admin-link:hover {
    color: var(--rose-gold);
}

/* === RESPONSIVIDADE === */
@media (max-width: 968px) {
    /* Navegação Mobile */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .btn-cta {
        display: none;
    }
    
    /* Hero */
    .hero {
        height: 80vh;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Intro */
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .intro-text {
        padding-right: 0;
    }
    
    .image-frame img {
        height: 400px;
    }
    
    /* Serviços */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   HERO DE PÁGINAS INTERNAS (Sobre, Serviços, etc)
   ============================================= */

.page-header {
    background-color: var(--gray-light);
    padding: 6rem 0 4rem;
    margin-top: 80px; /* Compensar altura do header fixo */
    text-align: center;
}

.page-header .container {
    max-width: 800px;
}

.page-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-gold);
    margin-bottom: 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--black-soft);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 968px) {
    .page-header {
        padding: 5rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 4rem 0 2.5rem;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
}

/* ========================================
   SISTEMA ADMINISTRATIVO - AJUSTES FINAIS
   Fernanda Nunes Espaço da Beleza
   ======================================== */

/* ========================================
   SIDEBAR - MELHORIAS
   ======================================== */

/* Transições suaves */
.sidebar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Destaque do item ativo */
.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, #d4af37 0%, #c4a028 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 135, 0.3);
}

.sidebar-nav .nav-item.active i {
    color: white;
}

/* Hover nos itens inativos */
.sidebar-nav .nav-item:not(.active):hover {
    background: rgba(212, 175, 135, 0.1);
    transform: translateX(5px);
}

/* ========================================
   AGENDA - LAYOUT RESPONSIVO
   ======================================== */

/* Container principal da agenda */
.agenda-wrapper {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 600px;
    overflow: hidden;
}

/* Calendário - ocupar toda largura */
.calendar-container {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Grid do calendário */
.calendar-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    height: 100%;
}

/* Cabeçalho dos dias */
.calendar-header {
    display: contents;
}

.calendar-header-cell {
    background: #d4af37;
    color: #2c1810;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

.calendar-header-cell.time-column {
    background: #f8f9fa;
}

/* Células de horário */
.calendar-time-cell {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    border-right: 2px solid #e0e0e0;
}

/* Células do calendário */
.calendar-day-cell {
    background: white;
    padding: 5px;
    min-height: 80px;
    position: relative;
    transition: background 0.2s ease;
}

.calendar-day-cell:hover {
    background: #f8f9fa;
    cursor: pointer;
}

/* Evento no calendário */
.calendar-event {
    background: linear-gradient(135deg, #d4af37 0%, #c4a028 100%);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    margin: 2px 0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Status dos eventos */
.calendar-event.pendente {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.calendar-event.confirmado {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.calendar-event.em_andamento {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.calendar-event.concluido {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.calendar-event.cancelado {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    opacity: 0.5;
    text-decoration: line-through;
}

/* Informações do evento */
.event-time {
    font-weight: 600;
    display: block;
    font-size: 0.75rem;
}

.event-client {
    font-size: 0.7rem;
    opacity: 0.95;
}

/* ========================================
   CONTROLES DO CALENDÁRIO
   ======================================== */

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

/* Navegação (Anterior/Próximo) */
.calendar-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calendar-nav button {
    background: #d4af37;
    color: #2c1810;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-nav button:hover {
    background: #c4a028;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 135, 0.3);
}

.calendar-nav button:active {
    transform: translateY(0);
}

/* Período atual */
.calendar-current-period {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c1810;
}

/* Seletor de visualização */
.calendar-view-switcher {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.calendar-view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-view-btn.active {
    background: #d4af37;
    color: #2c1810;
}

.calendar-view-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* Botão Hoje */
.btn-today {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-today:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVIDADE - MOBILE
   ======================================== */

@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: 50px repeat(7, 1fr);
    }
    
    .calendar-event {
        font-size: 0.75rem;
        padding: 5px 6px;
    }
}

@media (max-width: 968px) {
    /* Sidebar mobile */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Calendário mobile */
    .calendar-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-current-period {
        font-size: 1.1rem;
    }
    
    .calendar-grid {
        grid-template-columns: 40px repeat(7, 1fr);
        font-size: 0.75rem;
    }
    
    .calendar-event {
        font-size: 0.7rem;
        padding: 4px;
    }
    
    .event-client {
        display: none; /* Ocultar nome do cliente em telas pequenas */
    }
}

@media (max-width: 640px) {
    /* Mostrar apenas 3 dias em mobile */
    .calendar-grid {
        grid-template-columns: 40px repeat(3, 1fr);
    }
    
    .calendar-day-cell:nth-child(n+5) {
        display: none;
    }
    
    .calendar-header-cell:nth-child(n+5) {
        display: none;
    }
    
    .calendar-event {
        font-size: 0.65rem;
        padding: 3px;
    }
}

/* ========================================
   LEGENDA DE STATUS
   ======================================== */

.calendar-legend {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.pendente {
    background: #ffc107;
}

.legend-color.confirmado {
    background: #17a2b8;
}

.legend-color.em_andamento {
    background: #007bff;
}

.legend-color.concluido {
    background: #28a745;
}

.legend-color.cancelado {
    background: #dc3545;
}

/* ========================================
   ANIMAÇÕES EXTRAS
   ======================================== */

@keyframes slideInFromLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-item {
    animation: slideInFromLeft 0.3s ease-out forwards;
}

.nav-item:nth-child(1) { animation-delay: 0s; }
.nav-item:nth-child(2) { animation-delay: 0.05s; }
.nav-item:nth-child(3) { animation-delay: 0.1s; }
.nav-item:nth-child(4) { animation-delay: 0.15s; }
.nav-item:nth-child(5) { animation-delay: 0.2s; }
.nav-item:nth-child(6) { animation-delay: 0.25s; }
.nav-item:nth-child(7) { animation-delay: 0.3s; }
.nav-item:nth-child(8) { animation-delay: 0.35s; }

/* ========================================
   MELHORIAS GERAIS DE UX
   ======================================== */

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 135, 0.3);
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: spin 0.8s linear infinite;
}

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

/* Transições suaves globais */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, .btn, .nav-item, .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}