/* Reset e Variáveis */
:root {
    --primary: #d4af37;
    --secondary: #1a1a1a;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    position: relative;
    min-height: 100vh;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header e Navegação */
header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo h1 {
    color: var(--primary);
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-tabs li {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav-tabs li i {
    margin-right: 8px;
}

.nav-tabs li:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.nav-tabs li.active {
    background-color: var(--primary);
    color: white;
}

/* Conteúdo das Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content h2 {
    margin-bottom: 12px;
}

.tab-content.active {
    display: block;
}

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

/* Seção Início */
.hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/bg.jpg') center/cover;
    color: white;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.barbeiros-section, .servicos-section {
    margin-bottom: 40px;
}

.barbeiros-section h3, .servicos-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
}

.barbeiros-section h3::after, .servicos-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary);
}

.barbeiros-grid, .servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.barbeiro-card, .servico-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.barbeiro-card:hover, .servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.barbeiro-info, .servico-info {
    padding: 15px;
    text-align: center;
}

.barbeiro-info h4, .servico-info h4 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.barbeiro-info p, .servico-info p {
    color: #666;
    margin-bottom: 15px;
}

/* Formulário de Agendamento */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Botões */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #c9a227;
    transform: translateY(-2px);
}

.btn-primary i {
    margin-right: 8px;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-secondary:hover {
    background-color: #333;
}

/* Mensagens */
#mensagem {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.sucesso {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.erro {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Lista de Agendamentos */
.filtros {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filtros input {
    flex: 1;
    min-width: 200px;
}

#listaAgendamentos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.agendamento-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.agendamento-card:hover {
    transform: translateY(-3px);
}

.agendamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.agendamento-servico {
    font-weight: 600;
    color: var(--secondary);
}

.agendamento-status {
    background-color: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.agendamento-body p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.agendamento-body i {
    margin-right: 8px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.agendamento-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.btn-cancelar {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-cancelar:hover {
    background-color: #c82333;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.dashboard-card p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.graficos {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.status-agendado {
    background-color: #ffc107;
    color: #333;
}

.status-confirmado {
    background-color: #28a745;
    color: white;
}

.status-cancelado {
    background-color: #dc3545;
    color: white;
}

.btn-confirmar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-confirmar:hover {
    background-color: #218838;
}

/* Estilos para os status */
.status-agendado {
    background-color: #ffc107;
    color: #333;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-confirmado {
    background-color: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-cancelado {
    background-color: #dc3545;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Botões de confirmação e cancelamento */
.btn-confirmar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-confirmar:hover {
    background-color: #218838;
}

.btn-cancelar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-cancelar:hover {
    background-color: #c82333;
}

/* Filtro por status */
.filtro-status {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filtro-status button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filtro-status button.ativo {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

/* Cartão de valor a receber */
.valor-receber {
    border-top: 4px solid #28a745 !important;
}

.valor-receber p {
    color: #28a745 !important;
}

/* Texto de ajuda */
.hint {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Rodapé do card de agendamento */
.agendamento-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .agendamento-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .agendamento-footer button {
        width: 100%;
    }
    
    .filtro-status {
        justify-content: center;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .nav-tabs li {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-tabs li {
        padding: 8px;
        font-size: 12px;
    }
    
    .nav-tabs li i {
        margin-right: 5px;
    }
    
    .barbeiros-grid, .servicos-grid, #listaAgendamentos {
        grid-template-columns: 1fr;
    }
}