
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #080808 0%, #141414 50%, #080808 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    overflow-x: hidden;
}

/*SIDEBAR MOBILE*/
#toggle-menu {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -260px;
    width: 220px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    border-left: 2px solid #f39c12;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    transition: right 0.35s ease;
}

#toggle-menu:checked ~ .sidebar {
    right: 0;
}

.btn-fechar {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-fechar:hover {
    color: #f39c12;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    width: 100%;
}

.sidebar-nav ul li a {
    display: block;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    padding: 11px 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.ativo {
    background-color: #f39c12;
    color: black;
}

.hamburguer {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    user-select: none;
}

.hamburguer:hover {
    color: #f39c12;
}

.menu{
    display: none;
}

/*CABECALHO*/
.header{
    width: 100%;
    padding: 20px 15px;
    background-color: black;
    border-bottom: 2px solid #f39c12;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.container-logo{
    display: flex;
    align-items: center;
    gap: 15px;
}

.container-logo img{
    width: 70px;
}

.container-logo h1{
    font-family: 'Rye', serif;
    font-size: 1.5rem;
}

/*MENU*/
.menu ul{
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu li{
    text-align: center;
}

.menu li a{
    text-decoration: none;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    transition: 0.3s;
    display: block;
    font-size: 1rem;
}

.menu li a:hover{
    background-color: #f39c12;
    color: black;
}

.ativo{
    background-color: #f39c12;
    color: black !important;
}

/*PAINEL */
.painel{
    width: 100%;
    padding: 30px 15px;
}

.titulo-painel{
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.titulo-painel h2{
    font-family: 'Rye', serif;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #f39c12;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.titulo-painel p{
    text-align: center;
    color: #ccc;
    font-size: 0.95rem;
}

/*CARDS*/
.cards-grid{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* esconde todos os checkboxes de controle */
#toggle-agendamentos,
#toggle-todos,
#toggle-clientes,
#toggle-receita { display: none; }

.card-stat{
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.card-stat:hover{
    border-color: #f39c12;
}

/* label que age como cabeçalho clicável */
.card-label{
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    width: 100%;
}

.card-icone{
    width: 55px;
    height: 55px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #f39c12;
    flex-shrink: 0;
}

.card-info{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-info .numero{
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.card-info .label{
    font-size: 0.9rem;
    color: #aaa;
}

.seta{
    margin-left: auto;
    font-size: 1.2rem;
    color: #f39c12;
    transition: transform 0.3s;
    flex-shrink: 0;
}

/* gira seta quando aberto */
#toggle-agendamentos:checked ~ .card-stat .seta,
#toggle-todos:checked ~ .card-stat .seta,
#toggle-clientes:checked ~ .card-stat .seta,
#toggle-receita:checked ~ .card-stat .seta { transform: rotate(180deg); }

/*LISTA EXPANSIVEL*/
.lista-expansivel {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(243, 156, 18, 0.3);
}

/* serve para expandir a lista quando o usuário clica no card. */
#toggle-agendamentos:checked ~ .card-stat .lista-expansivel,
#toggle-todos:checked ~ .card-stat .lista-expansivel,
#toggle-clientes:checked ~ .card-stat .lista-expansivel,
#toggle-receita:checked ~ .card-stat .lista-expansivel { display: flex; }

/*ITEM DE AGENDAMENTO*/
.agendamento-item{
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.linha-topo{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.horario{
    font-size: 1rem;
    font-weight: bold;
    color: #f39c12;
}

.dados-cliente p{
    color: #ccc;
    font-size: 0.9rem;
    margin: 3px 0;
}

.dados-cliente .valor{
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 5px;
}

.status{
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.confirmado{
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #27ae60;
}

.acoes{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/*BOTOES*/
.acoes button{
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-concluir{
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60 !important;
    color: #27ae60;
}

.btn-concluir:hover{
    background: #27ae60;
    color: black;
}

.btn-editar{
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db !important;
    color: #3498db;
}

.btn-editar:hover{
    background: #3498db;
    color: black;
}

.btn-cancelar {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c !important;
    color: #e74c3c;
}

.btn-cancelar:hover{
    background: #e74c3c;
    color: black;
}

/*ITEM DE CLIENTE*/
.cliente-item{
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cliente-topo{
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icone-cliente {
    font-size: 2.5rem;
    color: #aaa;
    flex-shrink: 0;
}

.cliente-info strong {
    font-size: 1rem;
    color: white;
}

.cliente-info p {
    color: #ccc;
    font-size: 0.85rem;
    margin: 3px 0;
}

.cliente-rodape{
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.cliente-rodape strong{
    color: white;
}

/*RECEITA HOJE*/
.receita-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: #ccc;
}

.receita-valor {
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 10px;
}

.receita-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 0;
    font-size: 1rem;
    font-weight: bold;
    color: #f39c12;
}

/*FOOTER*/
footer{
    width: 100%;
    margin-top: 60px;
    padding: 35px 20px;
    background-color: rgba(0, 0, 0, 0.204);
    display: flex;
    flex-direction: column;
    text-align: center;
}

/*TABLET*/
@media (min-width: 768px) {

    .hamburguer{
        display: none;
    }

    .sidebar{
        display: none !important;
    }

    .menu{
        display: block;
    }

    .menu ul{
        flex-direction: row;
    }
    
    .menu li a{
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header{
        justify-content: space-around;
    }

    .container-logo h1{ 
        font-size: 2rem;
    }

    .cards-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .titulo-painel h2{
        font-size: 2.5rem;
    }  
}

/*DESKTOP*/
@media (min-width: 1024px){

    .painel{
        max-width: 1100px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}