/* ===== ESTILOS GERAIS ===== */

:root {
    --primary-color: #3D263F;
    --secondary-color: #F3EAC2;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #F3EAC2;
    --dark-color: #3D263F;
    --paleta-roxo: #3D263F;
    --paleta-bege: #F3EAC2;
}

html, body, .main-content {
    height: 100%;
    width: 100%;
    min-height: 100vh;
    min-width: 100vw;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== HEADER ===== */

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--paleta-roxo) !important;
}

/* ===== CARDS ===== */

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.card-header {
    background: #fff !important;
    color: var(--primary-color) !important;
    border-bottom: 2.5px solid var(--primary-color) !important;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    box-shadow: none;
}

/* ===== BOTÕES ===== */

.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--paleta-roxo);
    border-color: var(--paleta-roxo);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--paleta-bege);
    border-color: var(--paleta-roxo);
    color: var(--paleta-roxo);
    outline: 2px solid var(--paleta-roxo);
}
.btn-outline-primary {
    color: var(--paleta-roxo);
    border-color: var(--paleta-roxo);
    background: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--paleta-roxo);
    color: var(--paleta-bege);
    border-color: var(--paleta-roxo);
    outline: 2px solid var(--paleta-roxo);
}
.nav-link.btn, a.nav-link.btn {
    background-color: var(--paleta-roxo);
    color: var(--paleta-bege) !important;
    border: 1.5px solid var(--paleta-roxo);
    transition: background 0.3s, color 0.3s;
}
.nav-link.btn:hover, a.nav-link.btn:hover, .nav-link.btn:focus, a.nav-link.btn:focus {
    background-color: var(--paleta-bege);
    color: var(--paleta-roxo) !important;
    border: 1.5px solid var(--paleta-roxo);
    outline: 2px solid var(--paleta-roxo);
}

/* ===== FORMULÁRIOS ===== */

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(61, 38, 63, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(61, 38, 63, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Melhorias para layout de formulários */
.row .col-md-3,
.row .col-md-4,
.row .col-md-6 {
    margin-bottom: 1.5rem;
}

/* Espaçamento entre seções */
.col-12 h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}

.col-12 h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Campos de medidas físicas */
.medidas-fisicas {
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
}

.medidas-fisicas:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(61, 38, 63, 0.25);
}

/* Melhorias para responsividade */
@media (max-width: 768px) {
    .row .col-md-3,
    .row .col-md-4,
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
}

/* Melhorias para checkboxes e radio buttons */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-weight: 500;
    color: #495057;
}

/* Estilos para seção de valores */
.valor-tempo-check:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.valor-tempo-input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.valor-tempo-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(61, 38, 63, 0.15);
}

/* Melhorias para tabelas */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    text-align: center;
}

.table tbody td {
    vertical-align: middle;
    border-color: #dee2e6;
}

/* Estilo para botões de ação */
.btn-save {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a2d5a 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: linear-gradient(135deg, #5a2d5a 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 38, 63, 0.3);
}

/* ===== ACCOMPANHANTE CARD ===== */

.acompanhante-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.acompanhante-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.acompanhante-card .card-img-top {
    transition: transform 0.3s ease;
}

.acompanhante-card:hover .card-img-top {
    transform: scale(1.05);
}

.acompanhante-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
}

.acompanhante-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ===== BANNER ===== */

.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== FILTROS ===== */

.filtros-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.filtro-item {
    margin-bottom: 15px;
}

.filtro-item label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ===== PAGINAÇÃO ===== */

.pagination .page-link {
    border: none;
    color: var(--primary-color);
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== ALERTAS ===== */

.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== LOADING ===== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */

footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

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

/* ===== PAINEL ADMIN ===== */

.admin-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
}

.admin-sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.admin-header {
    width: 100%;
    margin-left: 0;
    background: linear-gradient(90deg, #6c63ff 0%, #7b6cf6 100%);
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    min-height: 70px;
}

.admin-header h4 {
    margin: 0;
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    z-index: 1;
    left: 0;
    right: 0;
}

.admin-header .header-col-right {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

@media (max-width: 900px) {
    .admin-header h4 {
        font-size: 1.2rem;
    }
    .admin-header .header-col-right {
        right: 10px;
        gap: 6px;
    }
}

.admin-content {
    margin-left: 250px;
    background: #fff !important;
}

/* ===== ESTATÍSTICAS ===== */

.stats-card {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-card .stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== TABELAS ===== */

.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: var(--paleta-roxo) !important;
    color: #fff !important;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== MODAIS ===== */

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .hero-banner {
        padding: 40px 0;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
    
    .filtros-section {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

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

/* ===== UTILITÁRIOS ===== */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rounded-custom {
    border-radius: 15px;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

.sidebar-header {
    min-height: 80px;
    padding: 24px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== SIDEBAR DESKTOP ===== */
.sidebar-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
    z-index: 1000;
    color: #fff;
    box-shadow: 2px 0 16px rgba(102, 126, 234, 0.07);
    display: block;
}

/* Sidebar só aparece em desktop */
@media (max-width: 991.98px) {
    .sidebar-desktop {
        display: none !important;
    }
}

/* ===== SIDEBAR MOBILE ===== */
.sidebar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
    z-index: 1100;
    color: #fff;
    box-shadow: 2px 0 16px rgba(102, 126, 234, 0.07);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    display: block;
}
.sidebar-mobile.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar mobile só aparece em telas pequenas */
@media (min-width: 992px) {
    .sidebar-mobile {
        display: none !important;
    }
}

/* ===== MAIN CONTENT ===== */
@media (min-width: 992px) {
    .main-content {
        margin-left: 240px !important;
    }
}
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
}

.main-content {
    background: #fff !important;
    min-height: 100vh;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* width: 100vw !important; */
    /* max-width: 100vw !important; */
} 

/* Formato retrato 4:5 para imagens dos cards de acompanhantes */
.card-img-top img, .card-img-top .rounded-3 {
  width: 100%;
  aspect-ratio: 4/5;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
} 