/* Importa a fonte moderna do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Paleta de Cores Moderna */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #2d3748;
    --bg-color: #f7f9fc;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
}

/* --- Navbar --- */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Botões --- */
.btn {
    border-radius: 50px; /* Botões arredondados */
    padding: 8px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 6px rgba(118, 75, 162, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(118, 75, 162, 0.4);
}

/* --- Cards (Cartões) --- */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden; /* Para a imagem não sair das bordas */
}

/* Efeito ao passar o mouse no card */
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    padding: 1.5rem;
}

/* Imagens nos cards */
.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05); /* Ligeiro zoom na imagem */
}

/* --- Formulários --- */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
    border-color: #764ba2;
    background-color: white;
}

/* --- Tabela do Painel --- */
.table thead th {
    background-color: #f1f5f9;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
}
.table td {
    vertical-align: middle;
}

/* --- Hero Section (Destaque da Home) --- */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    border-radius: 0 0 50px 50px; /* Curva bonita no fundo */
    margin-bottom: 60px;
}
.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        border-radius: 0 0 30px 30px;
    }
    .hero-section h1 { font-size: 2rem; }
    .btn { width: 100%; margin-bottom: 10px; } /* Botões largura total no mobile */
    .d-flex { flex-direction: column; } /* Empilha elementos flex */
    .me-1 { margin-right: 0 !important; }
}


/* --- Estilos do Painel Administrativo --- */

/* Cartões de Estatística (Widgets) */
.stat-card {
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.1; /* Ícone transparente no fundo */
    color: #764ba2;
}

/* Tabela Moderna */
.dashboard-table {
    border-collapse: separate;
    border-spacing: 0 10px; /* Espaço entre as linhas */
}
.dashboard-table thead th {
    border-bottom: none;
    color: #a0aec0;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.dashboard-table tbody tr {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    
}
.dashboard-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.dashboard-table td {
    border: none;
    padding: 20px;
    vertical-align: middle;
}
.dashboard-table td:first-child { border-radius: 15px 0 0 15px; }
.dashboard-table td:last-child { border-radius: 0 15px 15px 0; }

/* Avatar com Iniciais */
.avatar-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* Badges (Etiquetas) Suaves */
.badge-soft {
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.badge-soft-warning { background-color: #fff3cd; color: #ffbf00; }
.badge-soft-success { background-color: #d1e7dd; color: #198754; }
.badge-soft-danger  { background-color: #f8d7da; color: #dc3545; }

/* --- Estilos da Página de Configurações --- */

.profile-preview-card {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.logo-upload-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%; /* Foto redonda estilo Instagram */
    overflow: hidden;
    border: 4px solid #f8fafc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-upload-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* O botão de "câmera" que aparece ao passar o mouse */
.upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

/* --- Estilos do Calendário (Checkout) --- */

/* Cartão de Resumo do Pedido */
.summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
}
.summary-price {
    font-size: 2rem;
    font-weight: 800;
    color: #764ba2;
}

/* Grelha de Horários */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Responsivo automático */
    gap: 10px;
}

/* O input radio fica invisível, estilizamos o label */
.btn-check:checked + .time-slot-label {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.4);
    transform: translateY(-2px);
}

.time-slot-label {
    display: block;
    text-align: center;
    padding: 10px 5px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-label:hover {
    border-color: #764ba2;
    color: #764ba2;
}

/* Horário Ocupado */
.time-slot-disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    border-color: transparent;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

.upload-overlay:hover {
    background: var(--primary-gradient);
    opacity: 1;
}

/* Esconde o input file feio padrão */
#inputLogo {
    display: none;
}

/* --- Estilos da Página de Serviços --- */

.service-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateX(5px);
    border-color: #764ba2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #e2e8f0;
    transition: background 0.2s;
}

.service-item:hover::before {
    background: var(--primary-gradient);
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #764ba2;
}

/* Input Group moderno (para o R$ e min) */
.input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
}