/* ========================================
   CLIENT AREA PAGE
   ======================================== */

.user-name {
    color: var(--preto-suave);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-name:hover {
    color: var(--vinho-escuro);
}

.btn-logout {
    background-color: transparent;
    color: var(--preto-suave);
    border: 2px solid var(--vinho-escuro);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background-color: var(--vinho-escuro);
    color: var(--branco);
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.dashboard-section h1 {
    color: var(--vinho-escuro);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   TABS
   ======================================== */

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--cinza);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--preto-suave);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--vinho-escuro);
}

.tab-btn.active {
    color: var(--vinho-escuro);
    border-bottom-color: var(--vinho-escuro);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   APPOINTMENTS LIST
   ======================================== */

.appointments-list {
    display: grid;
    gap: 1.5rem;
}

.appointment-card {
    background-color: var(--branco);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--vinho-escuro);
}

.appointment-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.appointment-card.status-pendente {
    border-left-color: #FFA500;
}

.appointment-card.status-confirmado {
    border-left-color: #4CAF50;
}

.appointment-card.status-concluido {
    border-left-color: #2196F3;
}

.appointment-card.status-cancelado {
    border-left-color: #F44336;
    opacity: 0.7;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.appointment-title {
    flex: 1;
}

.appointment-title h3 {
    color: var(--vinho-escuro);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.appointment-title .professional-name {
    color: var(--preto-suave);
    opacity: 0.7;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pendente {
    background-color: #FFF3CD;
    color: #856404;
}

.status-badge.confirmado {
    background-color: #D4EDDA;
    color: #155724;
}

.status-badge.concluido {
    background-color: #D1ECF1;
    color: #0C5460;
}

.status-badge.cancelado {
    background-color: #F8D7DA;
    color: #721C24;
}

.status-badge.aceita {
    background-color: #D4EDDA;
    color: #155724;
}

.status-badge.recusada {
    background-color: #F8D7DA;
    color: #721C24;
}

.status-badge.reagendada {
    background-color: #D1ECF1;
    color: #0C5460;
}

.status-badge.cancelada {
    background-color: #F8D7DA;
    color: #721C24;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--preto-suave);
}

.detail-item i {
    color: var(--vinho-escuro);
    width: 20px;
}

.appointment-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dourado);
    margin: 1rem 0;
}

.appointment-observations {
    background-color: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-style: italic;
    color: var(--preto-suave);
}

.appointment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    background-color: var(--vermelho-vibrante);
    color: var(--branco);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    background-color: #C41230;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--vermelho-vibrante);
    color: var(--branco);
}

.btn-danger:hover {
    background-color: #C41230;
}

/* ========================================
   NEW APPOINTMENT SECTION
   ======================================== */

.new-appointment-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--off-white);
    border-radius: 12px;
}

/* ========================================
   CANCEL MODAL
   ======================================== */

.cancel-details {
    background-color: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.cancel-details p {
    margin-bottom: 0.5rem;
    color: var(--preto-suave);
}

.cancel-details strong {
    color: var(--vinho-escuro);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--preto-suave);
    opacity: 0.7;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--cinza);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   SOLICITAÇÕES CARDS
   ======================================== */

.solicitacao-card {
    background-color: var(--branco);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--vinho-escuro);
}

.solicitacao-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.solicitacao-card.status-pendente {
    border-left-color: #FFA500;
}

.solicitacao-card.status-aceita {
    border-left-color: #4CAF50;
}

.solicitacao-card.status-recusada {
    border-left-color: #F44336;
}

.solicitacao-card.status-reagendada {
    border-left-color: #2196F3;
}

.solicitacao-card.status-cancelada {
    border-left-color: #9E9E9E;
    opacity: 0.7;
}

.solicitacao-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.solicitacao-title {
    flex: 1;
}

.solicitacao-title h3 {
    color: var(--vinho-escuro);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.solicitacao-title .professional-name {
    color: var(--preto-suave);
    opacity: 0.7;
    font-size: 0.9rem;
}

.solicitacao-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.solicitacao-observations {
    background-color: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.solicitacao-observations strong {
    color: var(--vinho-escuro);
    display: block;
    margin-bottom: 0.5rem;
}

.solicitacao-observations p {
    color: var(--preto-suave);
    font-style: italic;
    margin: 0;
}

.solicitacao-status-info {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.solicitacao-status-info i {
    font-size: 2rem;
    flex-shrink: 0;
}

.solicitacao-status-info strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.solicitacao-status-info p {
    margin: 0;
    line-height: 1.5;
}

.solicitacao-status-info.pendente {
    background-color: #FFF3CD;
    color: #856404;
}

.solicitacao-status-info.aceita {
    background-color: #D4EDDA;
    color: #155724;
}

.solicitacao-status-info.recusada {
    background-color: #F8D7DA;
    color: #721C24;
}

.solicitacao-status-info.reagendada {
    background-color: #D1ECF1;
    color: #0C5460;
}

.solicitacao-status-info.cancelada {
    background-color: #E2E3E5;
    color: #383D41;
}

.solicitacao-justificativa {
    background-color: #FFF3CD;
    border-left: 4px solid #FFA500;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.solicitacao-justificativa strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.solicitacao-justificativa p {
    color: #856404;
    margin: 0;
}

.solicitacao-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cinza);
    color: var(--preto-suave);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Dashboard */
    .dashboard-section {
        padding: 2rem 0;
    }

    .dashboard-section h1 {
        font-size: 1.5rem;
    }

    /* Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        border-bottom: none;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(33.333% - 0.5rem);
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        border: 2px solid var(--cinza);
        border-radius: 8px;
        text-align: center;
    }

    .tab-btn.active {
        background-color: var(--vinho-escuro);
        color: var(--branco);
        border-color: var(--vinho-escuro);
    }

    /* Cards */
    .appointment-card,
    .solicitacao-card {
        padding: 1.2rem;
    }

    .appointment-header,
    .solicitacao-header {
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }

    .appointment-title h3,
    .solicitacao-title h3 {
        font-size: 1.1rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .appointment-details,
    .solicitacao-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .detail-item {
        font-size: 0.9rem;
    }

    .appointment-price {
        font-size: 1.3rem;
    }

    /* Actions */
    .appointment-actions {
        flex-direction: column;
    }

    .btn-cancel {
        width: 100%;
        justify-content: center;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    /* Header */
    .user-name span {
        display: none;
    }

    .btn-logout {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* New Appointment Section */
    .new-appointment-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Dashboard */
    .dashboard-section {
        padding: 1.5rem 0;
    }

    .dashboard-section h1 {
        font-size: 1.3rem;
    }

    /* Tabs */
    .tabs {
        gap: 0.3rem;
    }

    .tab-btn {
        padding: 0.7rem 0.3rem;
        font-size: 0.75rem;
        min-width: calc(33.333% - 0.3rem);
    }

    .tab-btn i {
        font-size: 1rem;
    }

    /* Cards */
    .appointment-card,
    .solicitacao-card {
        padding: 1rem;
    }

    .appointment-title h3,
    .solicitacao-title h3 {
        font-size: 1rem;
    }

    .professional-name {
        font-size: 0.85rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .detail-item {
        font-size: 0.85rem;
    }

    .appointment-price {
        font-size: 1.2rem;
    }

    /* Status Info */
    .solicitacao-status-info {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .solicitacao-status-info i {
        font-size: 1.5rem;
    }

    .solicitacao-status-info strong {
        font-size: 1rem;
    }

    .solicitacao-status-info p {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header {
        padding: 0.7rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .user-name {
        display: none;
    }

    .btn-logout {
        padding: 0.5rem 0.8rem;
    }

    .btn-logout span {
        display: none;
    }

    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state i {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.2rem;
    }
}
