:root {
    --primary-color: #1a252f;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-color: #95a5a6;
    --dark-gray: #7f8c8d;
    
    --text-color: #333;
    --text-light: #fff;
    --text-muted: #95a5a6;
    
    --bg-dark: #1a252f;
    --bg-light: #ecf0f1;
    --bg-body: #f5f5f5;
    
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-body);
    background-image: url('../images/foto1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a:hover {
    color: var(--secondary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #1b0d47, #2e67c3);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-voltar {
    background-color: var(--gray-color);
}

.btn-voltar:hover {
    background-color: var(--dark-gray);
}

.btn-cancelar {
    background: linear-gradient(45deg, #640000, #d60101, #f3b4b4);
    background-size: 200% auto;
}

.btn-cancelar:hover {
    background-color: #c0392b;
}

.btn-concluir {
     background: linear-gradient(45deg, #602917, #ac6b2f, #fbfbc4);
    background-size: 200% auto;
}

.btn-concluir:hover {
    background-color: #27ae60;
}

.btn-whatsapp {
    background: linear-gradient(45deg, #0b3600,  #539c40, #9bf185);
    background-size: 200% auto;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-telefone {
    background: linear-gradient(45deg, #190064,  #3201c7,  #a387f6);
    background-size: 200% auto;
}

.btn-telefone:hover {
    background-color: #1a252f;
}

.btn-pagar {
   background: linear-gradient(45deg, #8e6300,  #fad503,   #feeb7e);
    background-size: 200% auto;
}

.btn-pagar:hover {
    background-color: #d35400;
}

.btn-editar {
    background: linear-gradient(45deg, #1b0d47,  #2e67c3,  #e4e4e4);
    background-size: 200% auto;
}

.btn-editar:hover {
    background-color: #2980b9;
}

.btn-excluir {
   background: linear-gradient(45deg, #640000, #d60101, #f3b4b4);
    background-size: 200% auto;
}

.btn-excluir:hover {
    background-color: #c0392b;
}

.btn-limpar {
    background-color: var(--gray-color);
}

.btn-limpar:hover {
    background-color: var(--dark-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input {
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.auth-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.acoes {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.usuario-logado {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.usuario-logado p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.usuario-logado .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

/* Sections */
.sobre, .servicos {
    margin-bottom: 3rem;
}

.sobre h2, .servicos h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* Serviços Grid */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.servico-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.servico-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.servico-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.servico-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.servico-info .duracao {
    color: var(--secondary-color);
    font-weight: 500;
}

.servico-info .preco {
    color: var(--success-color);
    font-weight: 500;
}

/* Agendamento */
.agendamento-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-step.active span {
    background-color: var(--secondary-color);
}

.progress-step.completed span {
    background-color: var(--success-color);
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: var(--success-color);
    z-index: -1;
    transform-origin: left;
    transform: scaleX(0);
    transition: var(--transition);
}

.progress-step.completed .progress-line {
    transform: scaleX(1);
}

.progress-step:last-child .progress-line {
    display: none;
}

.agendamento-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Serviços e Barbeiros Grid */
.servicos-grid, .barbeiros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.servico-card, .barbeiro-card {
    position: relative;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.servico-card:hover, .barbeiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.servico-card input, .barbeiro-card input {
    position: absolute;
    opacity: 0;
}

.servico-content, .barbeiro-content {
    padding: 1.5rem;
    cursor: pointer;
}

.servico-card input:checked + .servico-content,
.barbeiro-card input:checked + .barbeiro-content {
    background-color: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.barbeiro-content {
    text-align: center;
}

.barbeiro-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}

.barbeiro-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.barbeiro-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Calendário */
.calendario-container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .calendario-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.calendario-navegacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendario-navegacao h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.btn-prev, .btn-next {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.calendario-dias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
    /* Ensure it aligns below the days of the week */
}

.calendario-dias div {
    padding: 0.75rem;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments for mobile */



@media (max-width: 768px) {
    .calendario-dias {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .calendario-dias div {
        padding: 0.5rem;
        min-height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .calendario-dias {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.2rem;
    }

    .calendario-dias div {
        padding: 0.4rem;
        min-height: 30px;
        font-size: 0.8rem;
    }
}

/* New styles added for calendar responsiveness */
@media (max-width: 360px) {
    .calendario-dias {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.15rem;
    }

    .calendario-dias div {
        padding: 0.3rem;
        min-height: 25px;
        font-size: 0.7rem;
    }
}

.calendario-dias .outro-mes {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendario-dias .inativo {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendario-dias .ativo {
    background-color: #fff;
    border: 1px solid #ddd;
}

.calendario-dias .ativo:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.calendario-dias .hoje {
    background-color: var(--primary-color);
    color: #fff;
}

.calendario-dias .dia-selecionado {
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 500;
}

/* Horários Disponíveis */
.horarios-disponiveis {
    background-color: #fff;
    padding: 1.0rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-height: 100px;
}

.horarios-disponiveis p {
    text-align: center;
    color: var(--text-muted);
}

.horario-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.2rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.horario-btn:hover {
    background-color: blue;
    color: #fff;
}

.horario-selecionado {
    background-color: blue;
    color: #fff;
}

@media (max-width: 480px) {
    .horarios-disponiveis {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.0rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Resumo Agendamento */
.resumo-agendamento {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.resumo-agendamento h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.resumo-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.resumo-item h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.resumo-item p {
    font-size: 1.1rem;
}

.pagamento-opcoes {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pagamento-opcoes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.pix-info {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.pix-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pix-info h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.pix-info .pix-key-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.pix-info .pix-key-container span {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
    flex: 1;
}

#btn-copy-pix {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    border: none;
    background: linear-gradient(45deg, #602917, #ac6b2f, #fbfbc4);
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#btn-copy-pix:hover {
    background-position: right center;
    transform: translateY(-1px);
}

.pix-info .payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--border-radius);
    color: #856404;
    margin-top: 1rem;
}

.pix-info .payment-notice i {
    font-size: 1.2rem;
    color: #856404;
}

@media (max-width: 768px) {
    .pix-info {
        padding: 1.5rem;
    }
    
    .pix-info .pix-key-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .pix-info .pix-key-container span {
        text-align: center;
        word-break: break-all;
    }
    
    #btn-copy-pix {
        width: 100%;
        justify-content: center;
    }
}


.pix-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pix-qrcode {
    max-width: 200px;
    margin: 1rem auto;
}

/* Meus Agendamentos */
.sem-agendamentos {
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.sem-agendamentos p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.agendamentos-lista {
    display: grid;
    gap: 1.5rem;
}

.agendamento-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.agendamento-info {
    flex: 1;
    min-width: 250px;
}

.agendamento-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.agendamento-info p {
    margin-bottom: 0.5rem;
}

.agendamento-acoes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.ver-todos {
    text-align: center;
    margin-top: 2rem;
}

/* Admin */
.admin-container {
    max-width: 1200px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-actions .btn {
    flex: 1;
    min-width: 200px;
}

.proximos-agendamentos {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.proximos-agendamentos h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Admin Forms */
.admin-form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.admin-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

.foto-atual {
    margin-top: 1rem;
}

/* Admin Tables */
.admin-list h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.admin-table th, 
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.admin-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.actions .btn {
    padding: 0.5rem;
    font-size: 0.8rem;
}

/* Horários Table */
.horarios-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.horarios-table th, 
.horarios-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.horarios-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.horarios-table input[type="time"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.bloqueio-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Responsivo */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        width: 100%;
        margin-top: 1rem;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .horarios-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .servicos-grid, .barbeiros-grid {
        grid-template-columns: 1fr;
    }
    
    .agendamento-card {
        flex-direction: column;
    }
    
    .agendamento-acoes {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* New styles for buttons inside agendamento-acoes on mobile */
    .agendamento-acoes a.btn {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        padding: 0;
        margin-right: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0; /* Hide text */
        border-radius: var(--border-radius);
    }

    .agendamento-acoes a.btn i {
        font-size: 20px;
        color: var(--text-light);
    }

    .agendamento-acoes a.btn.btn-whatsapp {
        background-color: #25D366;
    }

    .agendamento-acoes a.btn.btn-whatsapp:hover {
        background-color: #128C7E;
    }

    .agendamento-acoes a.btn.btn-whatsapp-aviso {
        background-color: #f0ad4e;
        color: white;
        font-size: 0;
        padding: 0;
        width: 40px;
        height: 40px;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--border-radius);
    }

    .agendamento-acoes a.btn.btn-whatsapp-aviso i {
        font-size: 20px;
        color: white;
        margin: 0;
    }

    .agendamento-acoes a.btn.btn-telefone {
        background-color: var(--primary-color);
    }

    .agendamento-acoes a.btn.btn-telefone:hover {
        background-color: #1a252f;
    }

    .agendamento-acoes a.btn.btn-concluir {
        background-color: var(--success-color);
    }

    .agendamento-acoes a.btn.btn-concluir:hover {
        background-color: #27ae60;
    }

    .agendamento-acoes a.btn.btn-cancelar {
        background-color: var(--danger-color);
    }

    .agendamento-acoes a.btn.btn-cancelar:hover {
        background-color: #c0392b;
    }

    .agendamento-acoes a.btn.btn-pagar {
        background-color: var(--warning-color);
    }

    .agendamento-acoes a.btn.btn-pagar:hover {
        background-color: #d35400;
    }
}

/* New styles for agendamento-card and children for professional, elegant, responsive look */
.agendamento-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    transition: box-shadow 0.3s ease;
}

.agendamento-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.agendamento-info {
    flex: 1 1 250px;
    min-width: 250px;
    color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding-right: 1rem;
    border-right: 1px solid #ddd;
}

.agendamento-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.agendamento-info p {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

.agendamento-info p strong {
    color: var(--primary-color);
    font-weight: 700;
}

.text-green {
    color: #28a745; /* Bootstrap success green */
    font-weight: 600;
}

.text-red {
    color: #dc3545; /* Bootstrap danger red */
    font-weight: 600;
}

.date-highlight {
    font-weight: 700;
    background-color: rgba(52, 152, 219, 0.15); /* subtle blue highlight */
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Compact and elegant styling for filtros form */
.filtros {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.filtros-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.filtros-form .form-group {
    flex: 1 1 150px;
    min-width: 120px;
    margin-bottom: 0;
}

.filtros-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.filtros-form select,
.filtros-form input[type="date"] {
    width: 100%;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.filtros-form select:focus,
.filtros-form input[type="date"]:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.4);
}

.filtros-form .btn {
    flex: 0 0 auto;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filtros-form .btn-limpar {
    margin-left: 0.5rem;
    background-color: var(--gray-color);
    color: var(--text-light);
}

.filtros-form .btn-limpar:hover {
    background-color: var(--dark-gray);
}

@media (max-width: 480px) {
    .filtros-form {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .filtros-form .form-group,
    .filtros-form .btn,
    .filtros-form .btn-limpar {
        flex: 1 1 100%;
        min-width: auto;
        margin-left: 0;
    }

    .filtros-form .btn-limpar {
        margin-left: 0;
    }
}

.agendamento-acoes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .agendamento-card {
        flex-direction: column;
        padding: 1rem;
    }

    .agendamento-info {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .agendamento-acoes {
        flex-direction: row;
        justify-content: flex-start;
        min-width: 100%;
        gap: 0.75rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .agendamento-info h4 {
        font-size: 1.1rem;
    }

    .agendamento-info p {
        font-size: 0.9rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
}

.clients-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.clients-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.whatsapp-icon img {
    width: 24px;
    height: 24px;
}

/* Responsive for mobile */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .clients-list li {
        font-size: 14px;
    }

    .whatsapp-icon img {
        width: 20px;
        height: 20px;
    }
}
