/* Estilos específicos para a área do Perfil do Cliente */
.profile-dashboard { display: flex; gap: 30px; align-items: flex-start; margin-top: 40px; margin-bottom: 60px; }
.dashboard-content { flex: 1; width: 100%; }
.dashboard-card { background: white; border-radius: 8px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.order-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: bold; color: white; background: #999; }
.item-row { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
.item-img { width: 60px; height: 60px; background: #f9f9f9; border-radius: 4px; margin-right: 15px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.summary-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fdfdfd; border: 1px solid #eee; border-radius: 8px; }
.summary-table td { padding: 10px 15px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.summary-table tr:last-child td { border-bottom: none; font-weight: bold; font-size: 16px; color: var(--souza-orange); }
.summary-label { color: #666; }
.summary-value { text-align: right; color: #333; }
.delivery-info-box { background: #e3f2fd; border: 1px solid #bbdefb; padding: 15px; border-radius: 6px; margin-bottom: 25px; color: #0d47a1; }
.print-header { display: none; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 15px; }

/* Estilos para Abas */
.tabs-container { margin-top: 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #eee; }
.tabs-header { display: flex; background: #f8f9fa; border-bottom: 1px solid #eee; }
.tab-btn { padding: 15px 25px; border: none; background: none; cursor: pointer; font-weight: bold; color: #777; transition: all 0.3s; border-bottom: 3px solid transparent; font-size: 14px; }
.tab-btn:hover { color: var(--souza-orange); background: #fff; }
.tab-btn.active { color: var(--souza-orange); border-bottom-color: var(--souza-orange); background: #fff; }
.tab-pane { display: none; padding: 30px; animation: fadeIn 0.4s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Estilos para o Feed (Reels/Chat) */
.reels-feed { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.feed-entry { display: flex; flex-direction: column; width: 100%; position: relative; }
.entry-client { align-items: flex-end; }
.entry-gerente { align-items: flex-start; }

.feed-bubble { padding: 12px 18px; border-radius: 20px; font-size: 14px; line-height: 1.5; max-width: 85%; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.entry-client .feed-bubble { background: var(--souza-orange, #ee4d2d); color: white; border-bottom-right-radius: 4px; }
.entry-gerente .feed-bubble { background: #f1f3f5; color: #333; border-bottom-left-radius: 4px; border: 1px solid #e9ecef; }

.feed-file-card { background: white; border: 1px solid #eee; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 15px; width: 100%; max-width: 400px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.feed-meta { font-size: 10px; color: #999; margin: 5px 10px; }

.feed-forms-container { background: #fff; border: 1px solid #eee; border-radius: 15px; padding: 20px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }

/* Estilos para Status Visual */
.status-step { display: flex; align-items: center; margin-bottom: 15px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 15px; flex-shrink: 0; }
.status-text { font-size: 15px; color: #555; }
.status-text strong { color: #333; }

/* Cards de Produtos (Aba Itens) */
.product-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.product-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #f8f9fa; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.header-left, .header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.product-tag { background: #dc3545; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.btn-item-action { padding: 6px 12px; border-radius: 6px; font-size: 12px; text-decoration: none; display: flex; align-items: center; gap: 6px; font-weight: 600; transition: 0.2s; }
.btn-notes { background: #ff8c00; color: #fff; border: 1px solid #ff8c00; }
.btn-notes:hover { background: #e67e00; }
.btn-view-item { background: #fff; color: #555; border: 1px solid #ddd; }
.btn-view-item:hover { background: #f8f9fa; border-color: #ccc; }

.status-delivery { color: #28a745; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.status-finalizado-label { color: #dc3545; font-weight: 900; font-size: 13px; letter-spacing: 0.5px; }

.product-card-body { display: flex; align-items: center; gap: 20px; padding: 10px 0 20px 0; }
.item-card-thumb { width: 80px; height: 80px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fdfdfd; flex-shrink: 0; }
.item-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card-footer { border-top: 1px solid #f8f9fa; padding-top: 15px; }
.total-row-card { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.total-label-card { color: #444; font-size: 14px; font-weight: 600; }
.total-value-card { color: #2d50ee; font-size: 14px; font-weight: 900; }

.action-row-card { display: flex; justify-content: flex-end; gap: 12px; }
.btn-buy-again-card { background: #ff8c00; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: bold; text-decoration: none; font-size: 14px; transition: 0.3s; border: none; }
.btn-buy-again-card:hover { background: #e67e00; transform: translateY(-2px); }

.btn-talk-seller-card { background: #fff; color: #555; border: 1px solid #ccc; padding: 12px 24px; border-radius: 8px; font-weight: bold; text-decoration: none; font-size: 14px; transition: 0.3s; }
.btn-talk-seller-card:hover { background: #f8f9fa; border-color: #999; }

/* Novo Layout de Detalhes do Pedido */
.order-details-flex { display: block; }
.order-left-column { width: 100%; }
.order-right-column { display: none !important; }
.summary-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid #eee; }
.compact-item-list { margin: 15px 0; max-height: 300px; overflow-y: auto; padding-right: 5px; }
.compact-item-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eee; align-items: center; }
.compact-item-img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #f9f9f9; }
.compact-item-info { flex: 1; font-size: 13px; line-height: 1.3; }
.compact-item-price { font-weight: bold; font-size: 13px; color: #333; }

.btn-payment-main { background: #009ee3; color: white; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 16px; margin-bottom: 20px; transition: 0.3s; border: none; width: 100%; box-shadow: 0 4px 10px rgba(0, 158, 227, 0.2); }
.btn-payment-main:hover { background: #0081ba; transform: translateY(-2px); }

/* Estilos para Movimentações de Saldo */
.balance-card { 
    background: linear-gradient(135deg, var(--souza-orange, #ee4d2d) 0%, #ff7831 100%); 
    color: white; 
    padding: 30px; 
    border-radius: 12px; 
    margin-bottom: 30px; 
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3); 
}

/* Modos de Impressão e PDF */
@media print {
    body * { visibility: hidden; }
    .dashboard-card, .dashboard-card * { visibility: visible; }
    .dashboard-card { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 0; }
    .print-header { display: flex !important; flex-direction: column; align-items: center; text-align: center; }
    .no-print { display: none !important; }
}
.pdf-mode { padding: 0 !important; margin: 0 !important; }
.pdf-mode .print-header { display: flex !important; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 15px; }
.pdf-mode .customer-info-print { display: block !important; margin-bottom: 20px; padding: 10px; border: 1px solid #eee; border-radius: 4px; }

.customer-info-print { display: none; }
.ready-for-pickup { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 10px; border-radius: 4px; margin-top: 10px; font-weight: bold; }

/* Componentes de interface compartilhados no perfil */
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.file-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid #ddd; margin-right: 10px; transition: transform 0.2s; }
.file-thumb:hover { transform: scale(1.1); }

@media (max-width: 900px) {
    .profile-dashboard { flex-direction: column; }/* Adicionar ao final de public_html/perfil/styles.css */
    
    /* Melhorias na Linha do Tempo de Status */
    .status-step {
        position: relative;
        padding-left: 30px; /* Espaço para a linha vertical */
        margin-left: 5px; /* Alinha o ponto com o conteúdo */
    }
    
    /* Linha vertical que conecta os pontos */
    .status-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 11px; /* Centraliza a linha no ponto */
        top: 20px;
        height: calc(100% - 10px);
        width: 2px;
        background-color: #e9ecef;
    }
    
    .status-step .status-dot {
        width: 24px;
        height: 24px;
        position: absolute;
        left: 0;
        top: 5px;
        background-color: #e9ecef;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #adb5bd;
        transition: all 0.3s ease;
    }
    
    .status-step.completed .status-dot {
        background-color: #28a745;
        color: white;
    }
    
    .status-step.active .status-dot {
        background-color: var(--souza-orange, #ff6a00);
        color: white;
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.2);
    }
    
    .status-step.completed:not(:last-child)::before {
        background-color: #28a745; /* Linha verde para status concluídos */
    }
    
    .status-text-wrapper {
        padding: 5px 0 25px 15px;
    }
    
    .status-text strong {
        font-size: 16px;
    }
    
    .status-date {
        display: block;
        font-size: 12px;
        color: #888;
        margin-top: 2px;
    }
    
    .status-current-label {
        background-color: var(--souza-orange, #ff6a00);
        color: white;
        font-size: 10px;
        font-weight: bold;
        padding: 3px 8px;
        border-radius: 4px;
        display: inline-block;
        margin-top: 5px;
    }
    
    .order-details-flex { display: block; }
}

/* Estilos movidos de perfil/index.php */
.profile-sidebar { width: 280px; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; flex-shrink: 0; }
.profile-header { padding: 30px 20px; text-align: center; border-bottom: 1px solid #eee; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.sidebar-avatar-default { width: 100px; height: 100px; border-radius: 50%; background-color: #e9ecef; display: flex; align-items: center; justify-content: center; font-size: 50px; color: #adb5bd; margin: 0 auto 15px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sidebar-avatar-wrapper { position: relative; display: inline-block; text-decoration: none; }
.sidebar-avatar-edit { position: absolute; bottom: 15px; right: 5px; background: rgba(0,0,0,0.6); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 2px solid white; transition: all 0.2s ease; }
.sidebar-avatar-wrapper:hover .sidebar-avatar-edit { transform: scale(1.1); background: var(--souza-orange); }

.profile-menu a { display: flex; align-items: center; gap: 12px; padding: 15px 25px; color: #555; text-decoration: none; border-left: 4px solid transparent; transition: all 0.2s; font-size: 15px; }
.profile-menu a:hover { background: #f8f9fa; color: var(--souza-orange, #ee4d2d); }
.profile-menu a.active { background: #fff5f1; color: var(--souza-orange, #ee4d2d); border-left-color: var(--souza-orange, #ee4d2d); font-weight: 600; }

.section-title { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; font-size: 20px; color: #333; }

@media (max-width: 900px) {
    .profile-sidebar { width: 100%; }
}

/* --- NOVAS CLASSES PADRONIZADAS (TABELA E ESTADO VAZIO) --- */

/* Tabela Padrão para Listagens no Perfil */
.table-profile {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.table-profile thead tr {
    border-bottom: 2px solid #eee;
    background-color: #f8f9fa;
}
.table-profile th, .table-profile td {
    padding: 12px 15px;
}
.table-profile tbody tr {
    border-bottom: 1px solid #eee;
}

/* Card para quando não há itens a serem listados */
.empty-state-card {
    text-align: center;
    padding: 50px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

/* --- NOVOS ESTILOS PARA FORMULÁRIOS MODERNOS --- */
.form-section {
    margin-bottom: 40px;
}
.form-section:last-of-type {
    margin-bottom: 10px;
}
.form-section-header {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.form-group {
    margin-bottom: 0; /* Removido para funcionar bem no grid */
}
.form-group label {
    font-weight: 600;
    font-size: 14px;
}