/* =========================
RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
VARIÁVEIS DO TEMA
========================= */

:root {
    --fundo: #05080d;
    --fundo-card: #0d1219;
    --fundo-input: #080c12;

    --borda: #1d2b3b;
    --borda-hover: #31506d;

    --azul: #168cff;
    --azul-claro: #55b5ff;

    --vermelho: #e53935;

    --branco: #ffffff;
    --texto: #d9e2ec;
    --texto-secundario: #8493a5;

    --sombra: rgba(0, 0, 0, 0.6);
}


/* =========================
BODY
========================= */

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(22, 140, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #030507,
            #080d14,
            #030507
        );

    color: var(--branco);
}


/* =========================
TÍTULO / LOGO
========================= */

.logo-titulo {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-bottom: 10px;
}

.logo-titulo img {
    width: 85px;
    height: 85px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #cbd8e5;

    box-shadow:
        0 0 15px rgba(22, 140, 255, 0.35),
        0 0 35px rgba(22, 140, 255, 0.12);
}

.logo-titulo h1 {
    margin: 0;

    font-size: 30px;
    letter-spacing: 4px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #9ecfff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-titulo p {
    margin-top: 5px;

    color: var(--texto-secundario);

    font-size: 13px;

    letter-spacing: 1px;
}


/* =========================
LOGIN
========================= */

.login-container {
    width: 100%;
    max-width: 400px;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 24, 34, 0.96),
            rgba(7, 11, 17, 0.98)
        );

    border: 1px solid var(--borda);

    border-radius: 18px;

    box-shadow:
        0 20px 60px var(--sombra),
        0 0 35px rgba(22, 140, 255, 0.05);

    text-align: center;
}

.login-container > p {
    margin-bottom: 28px;

    color: var(--texto-secundario);

    font-size: 14px;
}


/* =========================
FORMULÁRIOS
========================= */

#loginForm,
.form-login {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

#loginForm input,
.form-login input {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--borda);

    border-radius: 9px;

    background: var(--fundo-input);

    color: var(--branco);

    font-size: 15px;

    outline: none;

    transition: 0.25s;
}

#loginForm input:hover,
.form-login input:hover {
    border-color: var(--borda-hover);
}

#loginForm input:focus,
.form-login input:focus {
    border-color: var(--azul);

    box-shadow:
        0 0 0 2px rgba(22, 140, 255, 0.10),
        0 0 15px rgba(22, 140, 255, 0.08);
}

#loginForm input::placeholder,
.form-login input::placeholder {
    color: #596777;
}


/* =========================
BOTÕES PRINCIPAIS
========================= */

#loginForm button,
.form-login button,
.form-agendamento button {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #ffffff,
        #cbd7e3
    );

    color: #05080d;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

#loginForm button:hover,
.form-login button:hover,
.form-agendamento button:hover {

    background: linear-gradient(
        135deg,
        #ffffff,
        #8fc8ff
    );

    box-shadow:
        0 0 20px rgba(22, 140, 255, 0.25);

    transform: translateY(-1px);
}

#loginForm button:active,
.form-login button:active,
.form-agendamento button:active {
    transform: scale(0.98);
}


/* =========================
MENSAGENS
========================= */

#mensagem,
#mensagemCadastro {
    margin-top: 15px;

    color: #ff6b6b;

    font-size: 14px;

    text-align: center;
}

#mensagemAgendamento {
    margin-top: 18px;

    color: var(--texto);

    font-size: 14px;

    text-align: center;
}


/* =========================
PAINEL
========================= */

.painel-container {
    width: 100%;
    max-width: 650px;

    padding: 35px 25px;

    text-align: center;
}

.painel-container h1 {
    font-size: 32px;

    letter-spacing: 3px;
}

.subtitulo {
    margin-top: 8px;
    margin-bottom: 30px;

    color: var(--texto-secundario);
}


/* =========================
BOTÕES DO PAINEL
========================= */

.painel {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 25px;
}

.painel button {
    width: 100%;

    padding: 15px;

    border: 1px solid var(--borda);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #111923,
            #0b1119
        );

    color: var(--texto);

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

.painel button:hover {
    border-color: var(--azul);

    background:
        linear-gradient(
            135deg,
            #122235,
            #0b151f
        );

    color: var(--branco);

    box-shadow:
        0 0 20px rgba(22, 140, 255, 0.12);

    transform: translateY(-1px);
}


/* =========================
FORMULÁRIO AGENDAMENTO
========================= */

.form-agendamento {
    display: flex;

    flex-direction: column;

    width: 100%;
    max-width: 500px;

    margin: 0 auto;

    padding: 25px;

    background:
        linear-gradient(
            145deg,
            #101720,
            #090e15
        );

    border: 1px solid var(--borda);

    border-radius: 14px;

    text-align: left;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45);
}

.form-agendamento label {
    margin-bottom: 8px;

    color: var(--texto);

    font-size: 14px;

    font-weight: bold;
}

.form-agendamento select,
.form-agendamento input {
    width: 100%;

    padding: 14px 15px;

    margin-bottom: 20px;

    border: 1px solid var(--borda);

    border-radius: 9px;

    background: var(--fundo-input);

    color: var(--branco);

    font-size: 15px;

    outline: none;

    transition: 0.2s;
}

.form-agendamento select:focus,
.form-agendamento input:focus {
    border-color: var(--azul);

    box-shadow:
        0 0 12px rgba(22, 140, 255, 0.08);
}

.form-agendamento select option {
    background: #080c12;
    color: #ffffff;
}

.form-agendamento input[type="date"] {
    color-scheme: dark;
}


/* =========================
BOTÃO VOLTAR
========================= */

.form-agendamento .botao-voltar,
.form-login .botao-voltar {

    margin-top: 10px;

    background: transparent;

    border: 1px solid var(--borda);

    color: var(--texto);
}

.form-agendamento .botao-voltar:hover,
.form-login .botao-voltar:hover {

    background: #111a24;

    border-color: var(--azul);

    color: var(--branco);
}


/* =========================
AGENDAMENTOS CLIENTE
========================= */

#agendamentos {
    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-top: 20px;
}

.agendamento {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            #111923,
            #0b1118
        );

    border: 1px solid var(--borda);

    border-radius: 12px;

    text-align: left;

    transition: 0.2s;
}

.agendamento:hover {
    border-color: var(--borda-hover);

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.3);
}

.agendamento-info h3 {
    margin-bottom: 12px;

    font-size: 17px;

    color: var(--branco);
}

.agendamento-info p {
    margin-top: 5px;

    color: var(--texto-secundario);

    font-size: 14px;
}


/* =========================
BOTÃO CANCELAR / EXCLUIR
========================= */

.botao-cancelar,
.botao-excluir {

    padding: 9px 14px;

    border: 1px solid #653535;

    border-radius: 7px;

    background: transparent;

    color: #ff7070;

    cursor: pointer;

    transition: 0.2s;
}

.botao-cancelar:hover,
.botao-excluir:hover {

    background: var(--vermelho);

    border-color: var(--vermelho);

    color: #ffffff;

    box-shadow:
        0 0 15px rgba(229, 57, 53, 0.25);
}


/* =========================
AGENDA BARBEIRO
========================= */

.agenda-barbeiro {
    width: 100%;

    margin: 0 auto;

    padding: 25px;

    background:
        linear-gradient(
            145deg,
            #101720,
            #090e15
        );

    border: 1px solid var(--borda);

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);
}

.agenda-barbeiro label {
    display: block;

    margin-bottom: 8px;

    color: var(--texto);

    font-size: 14px;

    font-weight: bold;

    text-align: left;
}

.agenda-barbeiro input[type="date"] {
    width: 100%;

    padding: 14px 15px;

    margin-bottom: 20px;

    border: 1px solid var(--borda);

    border-radius: 9px;

    background: var(--fundo-input);

    color: #ffffff;

    font-size: 15px;

    outline: none;

    color-scheme: dark;
}

.agenda-barbeiro input[type="date"]:focus {
    border-color: var(--azul);
}


/* =========================
TABELA
========================= */

.tabela-agendamentos {
    width: 100%;

    border-collapse: collapse;

    background: #080c12;

    border: 1px solid var(--borda);

    border-radius: 9px;

    overflow: hidden;

    margin-bottom: 20px;

    font-size: 14px;
}

.tabela-agendamentos th {
    padding: 13px 10px;

    background:
        linear-gradient(
            135deg,
            #152131,
            #0e1722
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: bold;

    text-align: center;

    border-bottom: 1px solid var(--borda);
}

.tabela-agendamentos td {
    padding: 13px 10px;

    color: var(--texto);

    text-align: center;

    border-bottom: 1px solid #17222e;
}

.tabela-agendamentos tr:last-child td {
    border-bottom: none;
}

.tabela-agendamentos tr:hover {
    background: #101923;
}


/* =========================
BOTÃO SAIR
========================= */

.agenda-barbeiro > button {

    display: block;

    width: 220px;

    padding: 14px 20px;

    margin: 20px auto 0;

    border: 1px solid var(--borda);

    border-radius: 8px;

    background: transparent;

    color: var(--texto);

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

.agenda-barbeiro > button:hover {

    border-color: var(--azul);

    background: #101c29;

    color: #ffffff;

    box-shadow:
        0 0 15px rgba(22, 140, 255, 0.12);
}


/* =========================
MENSAGEM DA LISTA
========================= */

#agendamentos > p {

    padding: 20px;

    color: var(--texto-secundario);

    text-align: center;

    font-size: 14px;
}


/* =========================
RESPONSIVO
========================= */

@media (max-width: 600px) {

    .login-container {
        margin: 20px;

        padding: 28px 22px;
    }

    .painel-container {
        padding: 25px 15px;
    }

    .logo-titulo img {
        width: 70px;
        height: 70px;
    }

    .logo-titulo h1 {
        font-size: 25px;
    }

    .agendamento {
        flex-direction: column;

        align-items: stretch;
    }

    .botao-cancelar {
        width: 100%;
    }

    .agenda-barbeiro {
        padding: 15px;

        overflow-x: auto;
    }

    .tabela-agendamentos {
        min-width: 600px;
    }
}

/* =========================
BOTÕES DA AGENDA
========================= */

.botoes-agenda {
    display: flex;

    gap: 10px;

    margin-bottom: 20px;
}

.botoes-agenda button {
    flex: 1;

    padding: 13px;

    border: 1px solid #1d2b3b;

    border-radius: 8px;

    background: #101923;

    color: #d9e2ec;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.botoes-agenda button:hover {
    border-color: #168cff;

    background: #122235;

    color: #ffffff;
}

@media (max-width: 600px) {

    .botoes-agenda {
        flex-direction: column;
    }

}