﻿/* 
 * Pure Open - Estilos modernizados
 * Redesign baseado na identidade visual da Pure Pilates
 */

/* Variáveis */
:root {
    --pure-primary: #c10230; /* Cor principal da marca - vermelho */
    --pure-primary-dark: #990025; /* Versão escura da cor principal */
    --pure-primary-light: rgba(193, 2, 48, 0.1); /* Versão clara da cor principal */
    --pure-secondary: #e6a8bd; /* Cor secundária - rosa claro */
    --pure-accent: #d2738f; /* Cor de destaque - rosa médio */
    --pure-dark: #333333; /* Texto escuro */
    --pure-light: #f9f9f9; /* Fundo claro */
    --pure-white: #ffffff; /* Branco */
    --pure-gray: #eeeeee; /* Cinza claro para bordas */
    --pure-gray-dark: #888888; /* Cinza escuro para textos secundários */
    /* Novas variáveis para o design moderno */
    --pure-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --pure-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --pure-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --pure-radius-sm: 4px;
    --pure-radius-md: 8px;
    --pure-radius-lg: 12px;
    --pure-transition: all 0.3s ease;
    --pure-spacing: 1.5rem;
}

/* Reset e estilos gerais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    color: var(--pure-dark);
    background-color: var(--pure-light);
    line-height: 1.5;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Banner com imagem de fundo */
.pure-match-banner {
    background-image: url('/content/img/banner-pure-match.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 1;
}

    .pure-match-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
        z-index: -1;
    }

.pure-match-banner-content {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    animation: slideUp 0.6s ease;
    z-index: 2;
    padding: 0 var(--pure-spacing);
}

.pure-match-title {
    color: var(--pure-white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pure-match-subtitle {
    color: var(--pure-white);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Busca e filtros */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: var(--pure-radius-md);
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    height: 54px;
    padding: 0 20px;
    font-size: 16px;
    color: var(--pure-dark);
    background-color: var(--pure-white);
}

    .search-input:focus {
        outline: none;
    }

.search-btn {
    height: 54px;
    padding: 0 25px;
    background-color: var(--pure-primary);
    color: var(--pure-white);
    border: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .search-btn:hover {
        background-color: var(--pure-primary-dark);
    }

.filter-tabs {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--pure-radius-md);
    padding: 5px;
    margin-top: 10px;
}

.filter-tab {
    min-width: 140px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--pure-transition);
    letter-spacing: 0.5px;
}

    .filter-tab.active {
        background-color: var(--pure-primary);
        border-radius: 4px;
        color: var(--pure-white);
    }

    .filter-tab:hover:not(.active) {
        color: var(--pure-white);
    }

/* Breadcrumb */
.breadcrumb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    z-index: 10;
}

.pilates-breadcrumb {
    max-width: 1320px;
    margin: 0 auto;
    color: var(--pure-white);
    opacity: 0.9;
    font-size: 14px;
}

.pilates-breadcrumb-link {
    color: var(--pure-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .pilates-breadcrumb-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

.pilates-breadcrumb-active {
    color: var(--pure-white);
}

/* Login bar */
.login-bar {
    background-color: var(--pure-white);
    padding: 10px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .login-bar .container {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 var(--pure-spacing);
    }

    .login-bar .flex-end {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

.login-status {
    color: var(--pure-dark);
    font-size: 14px;
    display: none;
}

    .login-status.active {
        display: flex;
        align-items: center;
    }

#usuarioLogadoInfo {
    display: flex;
    align-items: center;
}

.login-btn-bar {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--pure-primary);
    color: var(--pure-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--pure-radius-sm);
    padding: 8px 16px;
    height: auto;
    cursor: pointer;
    transition: var(--pure-transition);
}

    .login-btn-bar:hover {
        background-color: var(--pure-primary);
        color: var(--pure-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(193, 2, 48, 0.2);
    }

    .login-btn-bar i {
        margin-right: 8px;
    }

.btn-logout-bar {
    background-color: transparent;
    border: none;
    color: var(--pure-gray-dark);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

    .btn-logout-bar:hover {
        color: var(--pure-primary);
    }

    .btn-logout-bar i {
        margin-right: 6px;
    }

/* Container principal */
.pure-match-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--pure-spacing);
    background-color: var(--pure-light);
    min-height: 50vh;
}

/* Grid de cards */
.pure-match-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pure-match-slots .bloco-horario {
    min-height: 320px; /* Ajuste este valor conforme necessário */
}

.pure-match-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

    .pure-match-empty p {
        color: var(--pure-gray-dark);
        font-size: 16px;
        margin-top: 10px;
    }

/* Cards de horários */
.bloco-horario {
    height: 100%;
    transition: var(--pure-transition);
    display: flex;
    flex-direction: column;
}

    .bloco-horario:hover {
        transform: translateY(-8px);
    }

.card {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    height: 100%;
}

.bloco-horario:hover .card {
    box-shadow: var(--pure-shadow-lg);
}

.card-header {
    color: var(--pure-white);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
    padding: 14px 16px;
    background-color: #c9184a;
}

    .card-header h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
    }

.distance-badge {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

    .distance-badge i {
        margin-right: 5px;
        font-size: 12px;
    }

.card-body {
    padding: 16px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--pure-white);
    justify-content: space-between; /* Distribui o espaço verticalmente */
}

.card-body .slot-info {
    margin-bottom: auto;
}

.card-text {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

    .card-text:last-child {
        margin-bottom: 0;
    }

    .card-text i {
        min-width: 24px;
        margin-right: 10px;
        color: var(--pure-primary);
        margin-top: 2px;
    }

    .card-text strong {
        font-weight: 600;
        margin-right: 5px;
    }

.card-footer {
    padding: 15px 20px;
    background-color: var(--pure-white);
    border-top: 1px solid var(--pure-gray);
    display: flex;
    justify-content: center;
    margin-top: auto; /* Empurra o footer para o final do card */
}

/* Candidatura info */
.candidatura-info {
    background-color: var(--pure-primary-light);
    border-radius: var(--pure-radius-sm);
    padding: 12px 15px;
    margin-bottom: 15px;
    position: relative;
}

    .candidatura-info p {
        color: var(--pure-primary);
        font-size: 14px;
        font-weight: 500;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .candidatura-info i {
        margin-right: 8px;
    }

.maps-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .maps-link i {
        margin-right: 5px;
    }

    .maps-link:hover {
        color: var(--pure-white);
        opacity: 1;
    }

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--pure-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--pure-transition);
    border: none;
    outline: none;
    box-shadow: var(--pure-shadow-sm);
}

.btn-primary {
    background-color: var(--pure-primary);
    color: var(--pure-white);
}

    .btn-primary:hover {
        background-color: var(--pure-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(193, 2, 48, 0.25);
    }

.btn-cancelar-candidatura {
    background-color: #fff !important;
    color: var(--pure-primary) !important;
    border: 1px solid var(--pure-primary) !important;
}

.btn-cancelar-candidatura:hover {
    background-color: var(--pure-primary) !important;
    color: #fff !important;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--pure-primary);
    color: var(--pure-primary);
}

    .btn-outline:hover {
        background-color: var(--pure-primary);
        color: var(--pure-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(193, 2, 48, 0.15);
    }

.btn-success {
    background-color: #28a745;
    color: var(--pure-white);
}

    .btn-success:hover {
        background-color: #218838;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
    }

    .btn-success:disabled {
        opacity: 0.7;
        cursor: default;
    }

        .btn-success:disabled:hover {
            transform: none;
            box-shadow: var(--pure-shadow-sm);
        }

.btn-danger {
    background-color: var(--pure-primary);
    color: var(--pure-white);
}

    .btn-danger:hover {
        background-color: #dc3545;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25);
    }

.btn-candidatar {
    width: 80%;
    height: 40px;
    margin: 0 auto;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--pure-primary);
    border: 1px solid var(--pure-primary);
    transition: background-color 0.2s;
    cursor: pointer;
}

    .btn-candidatar:hover {
        background-color: var(--pure-primary); 
        color: #fff;
    }

.btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Layout para candidaturas */
.candidatura-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

    .candidatura-buttons .btn {
        flex: 0 0 48%;
    }

/* Modais */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--pure-white);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--pure-radius-md);
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-dialog {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    background-color: var(--pure-primary);
    color: var(--pure-white);
    padding: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-header .close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--pure-white);
    font-size: 24px;
    line-height: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .modal-header .close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--pure-gray);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--pure-dark);
    }

.form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--pure-dark);
    background-color: var(--pure-white);
    border: 1px solid var(--pure-gray);
    border-radius: var(--pure-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus {
        border-color: var(--pure-primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(193, 2, 48, 0.1);
    }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5L3 6.5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: var(--pure-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0277bd;
    border: 1px solid #b3e5fc;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.alert-warning {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert p {
    margin: 0;
}

.alert i {
    margin-right: 8px;
}

/* Classes utilitárias */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.ml-2 {
    margin-left: 10px;
}

/* Estilos para confirmação de candidatura */
.horario-detalhes {
    border: 1px solid var(--pure-gray);
    border-radius: var(--pure-radius-md);
    padding: 20px;
    margin: 15px 0;
    background-color: var(--pure-white);
}

    .horario-detalhes h5 {
        font-size: 16px;
        font-weight: 600;
        color: var(--pure-primary);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

        .horario-detalhes h5 i {
            margin-right: 10px;
        }

    .horario-detalhes p {
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
    }

        .horario-detalhes p i {
            min-width: 24px;
            margin-right: 10px;
            color: var(--pure-primary);
        }

/* Responsividade */
@media (max-width: 768px) {
    .pure-match-banner-content{
        margin-top:30px;
    }

    .breadcrumb-container {
        padding: 0px
    }
    .pure-match-container {
        padding: 15px;
    }

    .pure-match-banner {
        background-image: url('/content/img/banner-pure-match-mobile.webp');
        height: auto;
        padding: 40px 0;
    }

    .pure-match-title {
        font-size: 2.2rem;
    }

    .search-container {
        flex-direction: column;
        box-shadow: none;
    }

    .search-input {
        flex:none;
        height: 50px;
        border-radius: var(--pure-radius-sm) var(--pure-radius-sm) 0 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .search-btn {
        height: 30px;
        border-radius: 0 0 var(--pure-radius-sm) var(--pure-radius-sm);
    }

    .filter-tabs {
        width: 100%;
        margin-top: 15px;
    }

    .filter-tab {
        flex: 1;
        min-width: auto;
        padding: 10px;
    }

    .pure-match-slots {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
        max-width: 95%;
    }

    .modal-body {
        padding: 15px;
    }

    .candidatura-buttons {
        flex-direction: column;
        gap: 10px;
    }

        .candidatura-buttons .btn {
            width: 100%;
        }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pure-match-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .pure-match-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Approved card styles */
.card-approved {
    border: 2px solid #28a745;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.15);
}

    .card-approved:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.25);
    }

.card-header-approved {
    background-color: #28a745 !important;
    color: white;
    position: relative;
}

    .card-header-approved:after {
        content: '✓';
        position: absolute;
        top: -10px;
        right: -10px;
        background-color: #28a745;
        color: white;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        border: 2px solid white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--pure-radius-sm);
    padding: 12px 15px;
    margin-bottom: 0;
}

    .alert-success .fa-check-circle {
        color: #28a745;
        margin-right: 8px;
    }

/* =====================================================
   MELHORIAS DE UX - ADICIONADAS NA ATUALIZAÇÃO
   ===================================================== */

/* Skip Link para acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pure-primary);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-card .card {
    overflow: hidden;
}

.skeleton-header {
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 6px 6px 0 0;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    height: 40px;
    width: 80%;
    margin: 20px auto 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

/* Progress Bar do Fluxo de Candidatura */
.form-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 30px;
    background-color: var(--pure-light);
    border-bottom: 1px solid var(--pure-gray);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.progress-step span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: var(--pure-gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step label {
    font-size: 12px;
    text-align: center;
    color: var(--pure-gray-dark);
    font-weight: 500;
}

.progress-step.active span {
    background-color: var(--pure-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(193, 2, 48, 0.3);
}

.progress-step.active label {
    color: var(--pure-primary);
    font-weight: 600;
}

.progress-step.completed span {
    background-color: #28a745;
    color: white;
}

.progress-step.completed span::after {
    content: '✓';
    font-size: 16px;
}

.progress-line {
    position: absolute;
    top: 38px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

/* Validação de Formulários */
.form-control.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.error-text {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.form-hint {
    color: var(--pure-gray-dark);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.required-mark {
    color: var(--pure-primary);
}

/* Loading State nos Botões */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: var(--pure-shadow-sm) !important;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Melhorias de Responsividade Mobile */
@media (max-width: 480px) {
    /* Botões com altura mínima WCAG (48px) */
    .btn {
        min-height: 48px;
        font-size: 16px;
    }

    /* Inputs com font-size 16px para evitar zoom no iOS */
    .form-control {
        font-size: 16px;
    }

    /* Search container com espaçamento adequado */
    .search-container {
        gap: 8px;
    }

    .search-input,
    .search-btn {
        height: 48px;
        border-radius: 4px;
    }

    /* Cards com altura flexível */
    .pure-match-slots .bloco-horario {
        min-height: auto;
    }

    /* Modal melhorado para mobile (bottom sheet style) */
    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        top: auto;
        bottom: 0;
        transform: translate(-50%, 0);
    }

    /* Padding maior em móvel */
    .card-body,
    .modal-body {
        padding: 16px;
    }

    /* Progress bar compacta no mobile */
    .form-progress {
        padding: 15px 10px;
    }

    .progress-step span {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .progress-step label {
        font-size: 10px;
    }
}

/* Empty State Melhorado */
.pure-match-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--pure-white);
    border-radius: var(--pure-radius-md);
    box-shadow: var(--pure-shadow-sm);
}

.pure-match-empty i {
    font-size: 64px;
    color: var(--pure-gray);
    margin-bottom: 20px;
}

.pure-match-empty h4 {
    color: var(--pure-dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.pure-match-empty p {
    color: var(--pure-gray-dark);
    font-size: 16px;
    margin: 5px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pure-match-empty .btn {
    margin-top: 20px;
}

/* Micro-interações e Animações */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bloco-horario {
    animation: cardFadeIn 0.4s ease forwards;
}

.bloco-horario:nth-child(1) { animation-delay: 0.05s; }
.bloco-horario:nth-child(2) { animation-delay: 0.1s; }
.bloco-horario:nth-child(3) { animation-delay: 0.15s; }
.bloco-horario:nth-child(4) { animation-delay: 0.2s; }
.bloco-horario:nth-child(5) { animation-delay: 0.25s; }
.bloco-horario:nth-child(6) { animation-delay: 0.3s; }
.bloco-horario:nth-child(n+7) { animation-delay: 0.35s; }

/* Ripple Effect nos Botões */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* Melhor contraste para acessibilidade */
.filter-tab {
    color: rgba(255, 255, 255, 0.9);
}

.filter-tab:hover:not(.active) {
    color: var(--pure-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Focus visible melhorado */
.btn:focus-visible,
.form-control:focus-visible,
.filter-tab:focus-visible {
    outline: 2px solid var(--pure-primary);
    outline-offset: 2px;
}

/* Badge de tipo de horário (recorrente) */
.badge-recorrente {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.badge-recorrente i {
    font-size: 10px;
}

/* Badge de posição na fila melhorado */
.badge-position {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 193, 7, 0.15);
    color: #ff9800;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.badge-approved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
