/* ===================================================================
   ESTILOS DO PAINEL ADMINISTRATIVO
   =================================================================== */

/* Tela de Login */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-container-dual {
    max-width: 900px;
}

.login-language-selector {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-language-selector .language-select {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
}

.login-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    transition: var(--transition);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.login-card-admin {
    border-color: var(--secondary-color);
}

.login-card-admin:hover {
    border-color: var(--accent);
}

.login-card-barber {
    border-color: #3498db;
}

.login-card-barber:hover {
    border-color: #2980b9;
}

.login-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.login-card-admin .login-card-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent));
}

.login-card-barber .login-card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.login-card-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.login-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-card-desc {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form .btn {
    margin-top: 0.5rem;
}

/* Responsive login */
@media (max-width: 768px) {
    .login-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .login-main-title {
        font-size: 2rem;
        margin-top: 1.5rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    min-height: 20px;
}

/* Navbar Admin */
.admin-navbar {
    background: var(--primary-color);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User info in navbar */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.user-type.admin {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.user-type.barbeiro {
    background: #3498db;
    color: white;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Hide admin-only menu items for barbers */
body.barber-view .admin-only {
    display: none !important;
}

/* Hide certain elements for barbers */
body.barber-view .admin-only-section {
    display: none !important;
}

.admin-brand {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 0;
}

/* Container Principal Admin */
.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: var(--background-light);
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: var(--primary-color);
    padding: 2rem 0;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-menu-item svg {
    width: 20px;
    height: 20px;
}

.admin-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
}

.admin-menu-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

/* Conteúdo Admin */
.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0;
}

/* Filtros de Reservas */
.reservas-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 0.8rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.filter-select {
    min-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.filter-select option {
    background: white;
    color: var(--text-dark);
    padding: 0.5rem;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-select:hover {
    border-color: var(--secondary-color);
}

/* Lista de Reservas */
.reservas-list {
    display: grid;
    gap: 1.5rem;
}

.reserva-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.reserva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.reserva-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reserva-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reserva-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reserva-status.pending {
    background: #fff3cd;
    color: #856404;
}

.reserva-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.reserva-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.reserva-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.reserva-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.reserva-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.reserva-detail svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.reserva-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Botão de atualizar reservas */
#refreshReservas {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

#refreshReservas:hover {
    background: rgba(212, 175, 55, 0.25) !important;
}

/* Botão de editar barbeiro */
.barbeiro-actions .btn-secondary:first-child {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.barbeiro-actions .btn-secondary:first-child:hover {
    background: rgba(212, 175, 55, 0.25) !important;
}

/* Botão de atualizar estatísticas */
#refreshStats {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

#refreshStats:hover {
    background: rgba(212, 175, 55, 0.25) !important;
}

/* ===================================================================
   SEÇÃO DE ESTATÍSTICAS
   =================================================================== */

/* Cards de Resumo */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: var(--secondary-color);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-family: 'Playfair Display', serif;
}

.stat-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Seções de Estatísticas */
.stats-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.stats-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-selector label {
    font-weight: 600;
    color: var(--primary-color);
}

.month-input {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.month-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Comparação Mensal */
.monthly-comparison {
    display: grid;
    gap: 1.5rem;
}

.comparison-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent));
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
}

.comparison-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.comparison-header p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.comparison-ranking {
    display: grid;
    gap: 1rem;
}

.ranking-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ranking-item.first {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-left-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.ranking-item.second {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.2), rgba(200, 200, 200, 0.1));
    border-left-color: #c8c8c8;
}

.ranking-item.third {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    border-left-color: #cd7f32;
}

.ranking-position {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
}

.ranking-item.first .ranking-position {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.ranking-item.second .ranking-position {
    background: #c8c8c8;
    color: white;
}

.ranking-item.third .ranking-position {
    background: #cd7f32;
    color: white;
}

.ranking-item:not(.first):not(.second):not(.third) .ranking-position {
    background: #e0e0e0;
    color: #666;
}

.ranking-content {
    flex: 1;
}

.ranking-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.ranking-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.ranking-stat {
    display: flex;
    flex-direction: column;
}

.ranking-stat .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.ranking-stat .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.ranking-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-item.first .ranking-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.empty-comparison {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-comparison svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Barber-specific stats styles */
.my-stats-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.05));
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.my-stats-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2980b9;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.my-stats-card .ranking-stats {
    justify-content: center;
}

.comparison-hint {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
    color: #666;
    font-size: 0.95rem;
}

.comparison-hint.leader {
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

.ranking-item.is-me {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1)) !important;
    border: 2px solid #3498db !important;
    border-left-width: 4px !important;
}

.ranking-item.is-me .ranking-content h4 {
    color: #2980b9;
}

/* Hidden class for sections */
.hidden {
    display: none !important;
}

/* Estatísticas por Barbeiro */
.barbeiros-stats {
    display: grid;
    gap: 1.5rem;
}

.barbeiro-stat-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.barbeiro-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.barbeiro-stat-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.barbeiro-stat-numbers {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.barbeiro-stat-number {
    text-align: center;
}

.barbeiro-stat-number .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.barbeiro-stat-number .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.barbeiro-stat-bar {
    margin-top: 1rem;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.barbeiro-stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Estatísticas por Serviço */
.servicos-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.servico-stat-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.servico-stat-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.servico-stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.servico-stat-item .percentage {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Estatísticas por Status */
.status-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-stat-item {
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.status-stat-item.pending {
    background: linear-gradient(135deg, #fff3cd, #ffc107);
    color: #856404;
}

.status-stat-item.confirmed {
    background: linear-gradient(135deg, #d4edda, #28a745);
    color: #155724;
}

.status-stat-item.completed {
    background: linear-gradient(135deg, #d1ecf1, #17a2b8);
    color: #0c5460;
}

.status-stat-item.cancelled {
    background: linear-gradient(135deg, #f8d7da, #dc3545);
    color: #721c24;
}

.status-stat-item h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.status-stat-item .percentage {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Lista de Barbeiros */
.barbeiros-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.barbeiro-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.barbeiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.barbeiro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.barbeiro-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.barbeiro-actions {
    display: flex;
    gap: 0.5rem;
}

.barbeiro-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.barbeiro-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.barbeiro-detail svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid #eee;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.modal-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
    width: 100%;
}

.modal-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.modal-form select option {
    background: white;
    color: var(--text-dark);
    padding: 0.5rem;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.modal-form select:hover {
    border-color: var(--secondary-color);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Poppins', sans-serif;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}

/* Responsivo */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 1rem 0;
    }

    .admin-menu {
        display: flex;
        overflow-x: auto;
    }

    .admin-menu-item {
        white-space: nowrap;
        padding: 1rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .reservas-filters {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
        min-width: auto;
    }

    .barbeiros-list {
        grid-template-columns: 1fr;
    }

    .reserva-header {
        flex-direction: column;
    }

    .reserva-details {
        grid-template-columns: 1fr;
    }

    /* Estatísticas responsivas */
    .stats-overview {
        grid-template-columns: 1fr;
    }

    .barbeiro-stat-numbers {
        flex-direction: column;
        gap: 1rem;
    }

    .servicos-stats,
    .status-stats {
        grid-template-columns: 1fr;
    }

    /* Comparação mensal responsiva */
    .stats-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .month-selector {
        width: 100%;
        flex-wrap: wrap;
    }

    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ranking-position {
        align-self: center;
    }

    .ranking-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .ranking-badge {
        align-self: center;
        margin-top: 1rem;
    }
}

/* ===============================================
   ESTABELECIMENTOS
   =============================================== */

.estabelecimentos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.estabelecimento-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.estabelecimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.estabelecimento-card.inactive {
    opacity: 0.6;
    border-left-color: #ccc;
}

.estabelecimento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.estabelecimento-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.estabelecimento-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.estabelecimento-status.ativo {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.estabelecimento-status.inativo {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.estabelecimento-info {
    margin-bottom: 1rem;
}

.estabelecimento-info p {
    margin: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.estabelecimento-info svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.estabelecimento-horarios {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.estabelecimento-horarios h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.horario-item.fechado {
    color: #999;
    font-style: italic;
}

.estabelecimento-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Modal Large */
.modal-large {
    max-width: 800px;
}

/* Horários Section */
.horarios-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.horarios-section h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.horarios-container {
    display: grid;
    gap: 1rem;
}

.horario-form-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 150px 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.horario-form-item label {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.horario-form-item input[type="time"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.horario-form-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.horario-form-item.fechado input[type="time"] {
    opacity: 0.5;
    pointer-events: none;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.checkbox-group label:hover {
    background: rgba(212, 175, 55, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===============================================
   BARBEIRO AVATAR E BADGES
   =============================================== */

.barbeiro-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--secondary-color);
    margin-right: 1rem;
}

.barbeiro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barbeiro-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.barbeiro-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    margin-top: 0.25rem;
}

.barbeiro-badge.warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

/* ===============================================
   FORM SECTIONS
   =============================================== */

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.form-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ===============================================
   IMAGE PREVIEW
   =============================================== */

.imagem-preview {
    margin-top: 1rem;
    text-align: center;
}

.imagem-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    border: 3px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===============================================
   BARBEIRO HEADER UPDATED
   =============================================== */

.barbeiro-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.barbeiro-info {
    flex: 1;
    min-width: 150px;
}

.barbeiro-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .estabelecimentos-list {
        grid-template-columns: 1fr;
    }

    .horario-form-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-large {
        max-width: 95%;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .barbeiro-header {
        flex-direction: column;
        text-align: center;
    }
    
    .barbeiro-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .barbeiro-actions {
        justify-content: center;
    }
    
    .form-section {
        padding: 1rem;
    }
}

