:root {
    --primary-color: #E88009;
    --primary-hover: #d67408;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 120px;
    --card-bg: #fff;
    --body-bg: #f5f5f5;
}

[data-theme="dark"] {
    --primary-color: #ff9f2b;
    --primary-hover: #ffb65c;
    --text-color: #e1e1e1;
    --bg-light: #2a2a2a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-bg: #333;
    --body-bg: #1a1a1a;
    --bg-color: #1a1a1a;
    --header-bg: #1a1a1a;
    --border-color: #404040;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] header {
    background-color: var(--header-bg);
    border-bottom: none;
}

[data-theme="dark"] .nav-link {
    color: var(--text-color);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .header-actions {
    color: var(--text-color);
}

[data-theme="dark"] .logo {
    color: var(--text-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-bg);
    padding-top: var(--header-height);
    transition: background-color 0.3s ease;
}

header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Ocultar texto original em telas pequenas */
    nav a[href="minhasreservas.php"] span,
    nav a[href="admin/"] span {
        display: none;
    }

    /* Adicionar novo texto em telas pequenas */
    nav a[href="minhasreservas.php"]::after {
        content: "Minhas";
    }

    nav a[href="admin/"]::after {
        content: "admin";
    }
}

/* Botão de tema */
.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .theme-toggle {
        position: static;
        margin-left: auto;
    }
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height));
}

/* modificaões recentes*/

.datas-recorrentes {
    font-size: 0.75em; /* Reduz o tamanho da fonte das datas */
    color: #777; /* Cor destacada (você pode alterar para qualquer cor que preferir) */
    font-weight: bold; /* Deixa as datas em negrito */
    display: inline-block; /* Para garantir que as datas se ajustem bem na tela */
}

.datas-recorrentes span {
    color: (--primary-hover); /* Cor diferenciada para cada data, se desejar um destaque mais específico */
    font-size: 0.85em; /* Um pouco maior que o texto principal */
}

.datas-recorrentes {
    font-size: 0.8em;
    color: (--primary-hover);
    font-weight: bold;
}

.datas-recorrentes span {
    font-size: 0.9em;
    color: (--primary-hover);
}


/* fim modificaões recentes*/


.espacos-disponiveis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.espaco-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.espaco-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.espaco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.espaco-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.espaco-card p {
    margin: 0.5rem 0;
    color: #666;
}



a:link, a:visited {
	text-decoration: none;
    color: var(--text-color)
	}
a:hover {
	text-decoration: none;
	color: #000000;
	}
a:active {
	text-decoration: none
	}




.btn-reservar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 1rem;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-reservar i {
    color: #ffffff;
    margin-right: 0.5rem;
}

.btn-reservar:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-reservar:hover i {
    color: #ffffff;
}

.btn-primary { 
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
}

/* Estilos para o formulário de reserva */
.container-reserva {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.info-espaco {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.info-espaco .espaco-imagem {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-espaco .espaco-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-espaco .espaco-imagem img:hover {
    transform: scale(1.05);
}

.info-espaco .espaco-info {
    padding: 0.5rem;
}

.info-espaco .espaco-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-espaco .espaco-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.info-espaco .espaco-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.form-reserva {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 128, 9, 0.2);
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 128, 9, 0.2);
}

.form-group select:hover {
    border-color: var(--primary-hover);
}

/* Estilização do botão Reservar no formulário */
.form-reserva button[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(232, 128, 9, 0.3);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-reserva button[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 128, 9, 0.4);
}

.form-reserva button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(232, 128, 9, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    :root {
        --header-height: 100px;
    }

    header {
        padding: 0.75rem;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .container-reserva {
        padding: 1rem;
        margin: 1rem;
    }

    .form-reserva {
        padding: 1rem;
    }

    .info-espaco {
        grid-template-columns: 1fr;
    }

    .info-espaco .espaco-imagem {
        height: 200px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.espaco-card {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para a página de confirmação */
.confirmacao-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.icon-success {
    color: #2e7d32;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.icon-error {
    color: #c62828;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmacao-card h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-reserva {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.info-reserva h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-item i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
    color: var(--text-color);
}

.confirmacao-actions {
    margin-top: 2rem;
    text-align: center;
}

.confirmacao-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.confirmacao-actions .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Modal de Erro */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.modal-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.horario-conflito {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-color);
}

.horario-conflito i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.modal-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tema escuro para o modal */
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
}

[data-theme="dark"] .modal-header {
    background-color: var(--primary-color);
}

[data-theme="dark"] .horario-conflito {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--primary-color);
    color: var(--text-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.horarios-disponiveis {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.horarios-disponiveis h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.lista-horarios {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.horario-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: white;
}

.horario-item.ocupado {
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.horarios-sugestao {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.horarios-sugestao h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.horarios-sugestao ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.horarios-sugestao li {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.horarios-sugestao li:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-2px);
}

/* Estilos para o painel de disponibilidade */
.reserva-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.disponibilidade-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.disponibilidade-panel h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-selector {
    margin-bottom: 1rem;
}

.data-selector input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.horario-slot {
    position: relative;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: visible;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    z-index: 1;
}

.horario-slot.ocupado {
    background-color: #ff4444;
    color: white;
    border-color: #ff4444;
    cursor: help;
}

.horario-slot.pendente {
    background-color: #ffd700;
    color: #333;
    border-color: #ffd700;
    cursor: help;
}

.horario-slot.parcial {
    position: relative;
    background: #e8f5e9;
    cursor: help;
    overflow: visible;
}

.horario-slot.parcial .horario-fill-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.horario-fill {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.3s ease;
    z-index: 1;
}

.horario-fill.ocupado {
    background-color: #ff4444;
}

.horario-fill.pendente {
    background-color: #ffd700;
}

.horario-slot .texto {
    position: relative;
    z-index: 2;
    color: inherit;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #333333;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    min-width: 220px;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.horario-slot:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    display: block;
}

.tooltip-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.tooltip-info hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.tooltip-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #333333;
}

.tooltip-info i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Tema escuro para o tooltip */
[data-theme="dark"] .tooltip {
    background-color: #333333;
    color: #ffffff;
    border-color: #444444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tooltip::after {
    background-color: #333333;
    border-color: #444444;
}

[data-theme="dark"] .tooltip-info span {
    color: #ffffff;
}

[data-theme="dark"] .tooltip-info hr {
    border-color: #444444;
}

.legenda {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.disponivel {
    background: #2e7d32;
}

.status-dot.ocupado {
    background-color: #ff4444;
}

.status-dot.pendente {
    background-color: #ffd700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .reserva-container {
        grid-template-columns: 1fr;
    }
}

/* Indicador de carregamento */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1000;
    text-align: center;
}

.loading-indicator i {
    color: var(--primary-color);
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

.loading-indicator p {
    margin-top: 1rem;
    color: var(--text-color);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid #2e7d32;
}

.toast.success i {
    color: #2e7d32;
}

.toast.error {
    border-left: 4px solid #c62828;
}

.toast.error i {
    color: #c62828;
}

.toast.fadeOut {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-icon.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.btn-icon.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.btn-icon.theme-toggle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: white;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .header-title h1 {
        font-size: 1.5rem;
    }

    .btn-icon.theme-toggle {
        width: 35px;
        height: 35px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .btn-icon.theme-toggle i {
        font-size: 1rem;
    }
}

.theme-toggle {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: var(--transition);
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.theme-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.theme-toggle i {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

/* Tema Lunar - Página Inicial */
[data-theme="lunar"] .espaco-card {
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="lunar"] .espaco-info h3 {
    color: var(--primary-color);
}

[data-theme="lunar"] .espaco-info p {
    color: var(--text-color);
}

[data-theme="lunar"] .header-content {
    background-color: var(--header-bg);
}

[data-theme="lunar"] .header-title h1 {
    color: var(--text-color);
}

[data-theme="lunar"] nav a {
    color: var(--text-color);
}

[data-theme="lunar"] nav a:hover {
    color: var(--primary-color);
}

[data-theme="lunar"] main h2 {
    color: var(--primary-color) !important;
}

/* Novos Temas */
[data-theme="oceanico"] {
    --primary-color: #20B2AA;
    --primary-hover: #48D1CC;
    --text-color: #2F4F4F;
    --bg-light: #E0FFFF;
    --shadow: 0 4px 6px rgba(32, 178, 170, 0.2);
    --card-bg: #fff;
    --body-bg: #F0FFFF;
    --header-bg: #20B2AA;
    --border-color: #5F9EA0;
}

[data-theme="floresta"] {
    --primary-color: #556B2F;
    --primary-hover: #6B8E23;
    --text-color: #3E2723;
    --bg-light: #F5F5DC;
    --shadow: 0 4px 6px rgba(85, 107, 47, 0.2);
    --card-bg: #FFF8DC;
    --body-bg: #F5F5DC;
    --header-bg: #556B2F;
    --border-color: #8B4513;
}

[data-theme="neon"] {
    --primary-color: #9932CC;
    --primary-hover: #8A2BE2;
    --text-color: #E0E0E0;
    --bg-light: #1A1A1A;
    --shadow: 0 4px 6px rgba(153, 50, 204, 0.3);
    --card-bg: #2A2A2A;
    --body-bg: #000000;
    --header-bg: #1A1A1A;
    --border-color: #9932CC;
}

/* Seletor de Temas Retrátil */
.theme-selector {
    position: fixed;
    right: 20px;
    top: 80px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-selector.collapsed {
    transform: translateX(calc(100% + 15px));
}

.theme-selector.collapsed .theme-selector-toggle {
    transform: translateX(-50px) translateY(-50%);
}

.theme-selector-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.theme-selector-toggle:hover {
    transform: translateY(-50%) scale(1.1);
}

.theme-selector.collapsed .theme-selector-toggle:hover {
    transform: translateX(-50px) translateY(-50%) scale(1.1);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    min-width: 150px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: var(--text-color);
}

.theme-option:hover {
    background: var(--bg-light);
}

.theme-option.active {
    background: var(--primary-color);
    color: white;
}

/* Efeitos Neon para o tema futurista */
[data-theme="neon"] .btn-reservar,
[data-theme="neon"] .theme-selector-toggle {
    box-shadow: 0 0 10px var(--primary-color),
                0 0 20px var(--primary-color),
                0 0 30px var(--primary-color);
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 15px var(--primary-color),
                    0 0 25px var(--primary-color),
                    0 0 35px var(--primary-color);
    }
    100% {
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color);
    }
}

/* Cores específicas para ícones dos temas */
.theme-option[data-theme="floresta"] i {
    color: #556B2F;
}

.theme-option[data-theme="floresta"] span {
    color: #2E7D32;
    font-weight: 500;
}

/* Quando o tema floresta estiver ativo, ajusta a cor do texto para branco */
.theme-option[data-theme="floresta"].active span,
.theme-option[data-theme="floresta"].active i {
    color: white;
}

/* Efeito especial para o tema neon */
[data-theme="neon"] .btn-reservar {
    box-shadow: 0 0 10px var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

[data-theme="neon"] .btn-reservar:hover {
    box-shadow: 0 0 15px var(--primary-color),
                0 0 25px var(--primary-color),
                0 0 35px var(--primary-color);
    background: var(--primary-hover);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Ajustes específicos para tema Oceânico */
[data-theme="oceanico"] .btn-reservar {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(32, 178, 170, 0.2);
}

[data-theme="oceanico"] .btn-reservar:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(32, 178, 170, 0.3);
}

/* Ajustes específicos para tema Floresta */
[data-theme="floresta"] .btn-reservar {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(85, 107, 47, 0.2);
}

[data-theme="floresta"] .btn-reservar:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(85, 107, 47, 0.3);
}

/* Ajustes específicos para tema Neon */
[data-theme="neon"] .btn-reservar,
[data-theme="neon"] .btn-reservar i {
    color: #ffffff;
    text-shadow: 0 0 5px var(--primary-color);
}

[data-theme="neon"] .btn-reservar:hover,
[data-theme="neon"] .btn-reservar:hover i {
    color: #ffffff;
    text-shadow: 0 0 8px var(--primary-color);
}

/* Botão de tema na página inicial */
.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title .btn-icon.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.header-title .btn-icon.theme-toggle i {
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.header-title .btn-icon.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.header-title .btn-icon.theme-toggle:hover i {
    transform: rotate(360deg);
}

[data-theme="dark"] .header-title .btn-icon.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos específicos para cada tema no botão de tema */
[data-theme="lunar"] .header-title .btn-icon.theme-toggle {
    color: var(--primary-color);
}

[data-theme="oceanico"] .header-title .btn-icon.theme-toggle {
    color: var(--primary-color);
}

[data-theme="floresta"] .header-title .btn-icon.theme-toggle {
    color: var(--primary-color);
}

[data-theme="neon"] .header-title .btn-icon.theme-toggle {
    color: #ffffff;
    text-shadow: 0 0 5px var(--primary-color);
}

/* Tema Rosa */
[data-theme="rosa"] {
    --primary-color: #F9B2C5;
    --primary-hover: #F794AE;
    --text-color: #4A4A4A;
    --bg-light: #FFF5F7;
    --shadow: 0 4px 15px rgba(249, 178, 197, 0.2);
    --card-bg: #ffffff;
    --body-bg: #FFF0F3;
    --header-bg: linear-gradient(135deg, #F9B2C5 0%, #F794AE 100%);
    --border-color: #FFD6E0;
}

[data-theme="rosa"] .btn-reservar {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(249, 178, 197, 0.2);
}

[data-theme="rosa"] .btn-reservar:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(249, 178, 197, 0.3);
}

[data-theme="rosa"] .theme-option[data-theme="rosa"] i {
    color: #F9B2C5;
}

[data-theme="rosa"] .theme-option[data-theme="rosa"] span {
    color: #F794AE;
    font-weight: 500;
}

[data-theme="rosa"] .theme-option[data-theme="rosa"].active span,
[data-theme="rosa"] .theme-option[data-theme="rosa"].active i {
    color: white;
}

[data-theme="rosa"] .header-title .btn-icon.theme-toggle {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(249, 178, 197, 0.5);
}

/* Temas e Cores */
[data-theme="light"] {
    --primary-color: #E88009;
    --primary-hover: #d67408;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --body-bg: #f5f5f5;
    --header-bg: #E88009;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --toast-bg: rgba(255, 255, 255, 0.9);
    --toast-border: #e0e0e0;
}

/* Toast e Loading */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    background-color: var(--toast-bg);
    border: 1px solid var(--toast-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--toast-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

/* Estilos para mensagens de alerta e loading */
.alert {
    padding: 1.25rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    text-align: center;
    max-width: 800px;
    margin: 1rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background-color: var(--error-bg, #ffebee);
    color: var(--error-text, #c62828);
    border: 1px solid var(--error-border, #ef9a9a);
}

.alert-success {
    background-color: var(--success-bg, #e8f5e9);
    color: var(--success-text, #2e7d32);
    border: 1px solid var(--success-border, #a5d6a7);
}

#loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-align: center;
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#loading-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

#loading-indicator p {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

#error-message {
    display: none;
    margin: 1rem auto;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    white-space: pre-line;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Temas escuros */
[data-theme="dark"] #loading-indicator {
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] #loading-indicator p {
    color: var(--text-color);
}

[data-theme="dark"] .alert-error {
    background-color: rgba(198, 40, 40, 0.15);
    border-color: rgba(239, 154, 154, 0.3);
    color: #ff8a80;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(46, 125, 50, 0.2);
    border-color: rgba(165, 214, 167, 0.3);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
}

/* Status específicos */
span.status-badge.pendente {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border: 1px solid #ffeeba !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
}

span.status-badge.ativa {
    color: #155724 !important;
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
}

span.status-badge.cancelada {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
}

/* Informações de cancelamento */
.cancelamento-info {
    margin-top: 8px;
    font-size: 0.9em;
    line-height: 1.4;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cancelamento-info .info-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.cancelamento-info .info-item:last-child {
    margin-bottom: 0;
}

.cancelamento-info .info-item strong {
    white-space: nowrap;
    color: #495057;
}

/* Estilos para fixar cabeçalho e filtros */
.container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px); /* Altura total menos o header */
    padding: 20px;
    box-sizing: border-box;
}

.filtros-container {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 10;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.table-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.table-responsive {
    flex: 1;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} 