/* ================================================ */
/* ESTILOS DA MINHA CONTA                          */
/* ================================================ */

body {
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.conta-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ================================================ */
/* CABEÇALHO DA CONTA                              */
/* ================================================ */

.conta-header {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conta-header h2 {
    color: #333;
    font-size: 28px;
    margin: 0;
}

.btn-logout {
    padding: 10px 20px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #b71c1c;
}

/* ================================================ */
/* ABAS/TABS                                       */
/* ================================================ */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background-color: #f5f5f5;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: #e8e8e8;
    color: #333;
}

.tab-btn.active {
    background-color: #fff;
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

.tab-btn.logout-btn {
    margin-left: auto;
    background-color: #f5f5f5;
    color: #d32f2f;
}

.tab-btn.logout-btn:hover {
    background-color: #f3e5e5;
}

/* ================================================ */
/* CONTEÚDO DA ABAS                               */
/* ================================================ */

.tab-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pedido-info-group {
    margin-bottom: 18px;
}

.pedido-info {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.pedido-info label {
    font-weight: 700;
    color: #333;
    min-width: 90px;
    display: inline-block;
}

.pedido-info .status-badge {
    margin-left: 8px;
    vertical-align: middle;
}

.tab-content h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

/* ================================================ */
/* TABELAS                                         */
/* ================================================ */

.pedidos-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pedidos-tabela thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.pedidos-tabela th {
    padding: 12px;
    text-align: left;
    color: #333;
    font-weight: bold;
}

.pedidos-tabela td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.pedidos-tabela tr:hover {
    background-color: #f9f9f9;
}

/* ================================================ */
/* STATUS BADGE                                    */
/* ================================================ */

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pendente {
    background-color: #fff3cd;
    color: #856404;
}

.status-processado {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-enviado {
    background-color: #cce5ff;
    color: #004085;
}

.status-entregue {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
}

/* ================================================ */
/* BOTÕES                                          */
/* ================================================ */

.btn-ver {
    display: inline-block;
    padding: 8px 16px;
    background-color: #D4AF37;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-ver:hover {
    background-color: #c99f2a;
}

.btn-voltar {
    display: inline-block;
    padding: 10px 18px;
    background-color: #D4AF37;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-voltar:hover {
    background-color: #c99f2a;
    transform: translateY(-1px);
}

/* ================================================ */
/* DETALHES DO PEDIDO                              */
/* ================================================ */

.pedido-detalhes {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pedido-detalhes h3 {
    color: #D4AF37;
    margin-top: 0;
}

.pedido-detalhes p {
    margin: 10px 0;
    color: #666;
}

.pedido-itens {
    margin-top: 20px;
}

.item-pedido {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.item-pedido:last-child {
    border-bottom: none;
}

.produto-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.produto-item-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #eee;
}

.produto-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.produto-item-info strong {
    font-size: 16px;
    color: #333;
}

.total-pedido {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #D4AF37;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

/* ================================================ */
/* ITENS DO PEDIDO                                 */
/* ================================================ */

.produto-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.produto-item-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #eee;
}

.produto-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.produto-item-info strong {
    font-size: 16px;
    color: #333;
}

/* ================================================ */
/* INFORMAÇÕES DE PERFIL                          */
/* ================================================ */

.perfil-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.perfil-info p {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.perfil-info p:last-child {
    border-bottom: none;
}

.perfil-info label {
    font-weight: bold;
    color: #333;
    min-width: 120px;
}

.perfil-info span {
    text-align: right;
    color: #666;
}

/* ================================================ */
/* MENSAGEM VAZIA                                  */
/* ================================================ */

.tab-content > p {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 16px;
}

.tab-content > p a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
}

.tab-content > p a:hover {
    text-decoration: underline;
}

/* ================================================ */
/* RESPONSIVO                                      */
/* ================================================ */

@media (max-width: 768px) {
    .conta-header {
        flex-direction: column;
        gap: 15px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn.logout-btn {
        margin-left: 0;
        width: 100%;
    }

    .pedidos-tabela {
        font-size: 14px;
    }

    .pedidos-tabela th,
    .pedidos-tabela td {
        padding: 8px;
    }

    .perfil-info p {
        flex-direction: column;
        gap: 5px;
    }
}
.edit-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.msg-alerta {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.msg-sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msg-erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-acao {
    background: #D4AF37;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: 0.3s;
}

.btn-acao:hover {
    background: #b8962d;
}