/* Profile Styles */
:root {
    --profile-bg: white;
    --profile-text: #2d3436;
    --profile-muted: #666;
    --profile-border: #eee;
    --profile-shadow: rgba(0, 0, 0, 0.1);
}

.profile-welcome {
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--profile-bg);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-header {
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
}

.profile-header .fa-user-circle {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.profile-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--profile-text);
    font-weight: 600;
}

.profile-header p {
    color: var(--profile-muted);
    font-size: 1.1rem;
}

.profile-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.profile-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--profile-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.profile-form .form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--profile-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--profile-bg);
}

.profile-form .form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.profile-form .primary-button {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.profile-separator {
    width: 100%;
    max-width: 400px;
    margin: 2.5rem auto;
    position: relative;
    text-align: center;
}

.profile-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--profile-border);
}

.profile-separator span {
    background: var(--profile-bg);
    padding: 0 1.5rem;
    color: var(--profile-muted);
    font-size: 0.95rem;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--profile-text);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.back-button:hover {
    color: var(--primary-color);
}

.secondary-button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.secondary-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Profile Info Styles */
.profile-info {
    padding: 2rem;
    background: var(--profile-bg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.profile-info .profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--profile-border);
}

.profile-info .profile-header i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.profile-info .profile-header h3 {
    font-size: 1.75rem;
    color: var(--profile-text);
    margin: 0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-group {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid var(--profile-border);
    transition: all 0.3s ease;
}

.info-group:hover {
    background: white;
    box-shadow: 0 4px 12px var(--profile-shadow);
    transform: translateY(-2px);
}

.info-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--profile-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-group p {
    font-size: 1.1rem;
    color: var(--profile-text);
    margin: 0;
    font-weight: 500;
}

/* Empty State */
.profile-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.profile-empty-state i {
    font-size: 5rem;
    color: var(--profile-border);
    margin-bottom: 1.5rem;
}

.profile-empty-state h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--profile-text);
}

.profile-empty-state p {
    color: var(--profile-muted);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Profile Sections */
.profile-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--profile-shadow);
    height: fit-content;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 2px solid var(--profile-border);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--profile-text);
}

/* Edit Button */
.edit-button {
    width: 100%;
    margin-top: 1.5rem;
}

.edit-button i {
    margin-right: 0.5rem;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-buttons button {
    flex: 1;
}

.form-buttons button i {
    margin-right: 0.5rem;
}

/* Orders List */
.orders-list {
    padding: 1.5rem;
}

.orders-empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--profile-muted);
}

.orders-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.order-card {
    background: var(--profile-bg);
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.order-card:last-child {
    margin-bottom: 0;
}

.order-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--profile-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-date {
    font-size: 0.9rem;
    color: var(--profile-muted);
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.confirmed {
    background: #cce5ff;
    color: #004085;
}

.order-status.preparing {
    background: #e2e3ff;
    color: #2d31b2;
}

.order-status.ready {
    background: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #842029;
}

.order-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.order-items {
    padding: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--profile-border);
}

.order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-item:first-child {
    padding-top: 0;
}

.item-quantity {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 2.5rem;
}

.item-name {
    flex: 1;
    color: var(--profile-text);
}

.item-price {
    color: var(--profile-muted);
    font-weight: 500;
}

/* Botão de logout sempre na parte inferior */
.profile-actions {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
    .profile-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .profile-info {
        padding: 1rem;
        margin: -1rem;
    }

    .profile-section {
        border-radius: 0;
    }

    .profile-welcome {
        padding: 2rem 1.5rem;
    }

    .profile-header .fa-user-circle {
        font-size: 4rem;
    }

    .profile-header h3 {
        font-size: 1.5rem;
    }

    .profile-form .form-group input {
        padding: 0.875rem;
    }

    .secondary-button {
        padding: 0.875rem 2rem;
    }

    .info-group {
        padding: 0.875rem;
    }

    .orders-list {
        padding: 1rem;
    }

    .order-card {
        margin-bottom: 0.75rem;
    }

    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .profile-welcome {
        padding: 1.5rem 1rem;
    }

    .profile-form {
        max-width: 100%;
    }

    .profile-separator {
        margin: 2rem auto;
    }

    .info-group:hover {
        transform: none;
        box-shadow: none;
    }
}

.form-group input[type="tel"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--profile-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--profile-bg);
}

.form-group input[type="tel"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

/* Adicionar ao arquivo existente */
.password-group {
    position: relative;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 40px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    color: var(--profile-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    outline: none;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Garantir que o input de senha não tenha opacidade ou sobreposição */
#profileSignupPassword {
    opacity: 1 !important;
    z-index: 1;
}

/* Estilos para o acordeão de pedidos */
.orders-accordion {
    margin-top: 1rem;
}

.order-accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
    transition: all 0.3s ease;
}

.order-accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.order-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-accordion-header:hover {
    background-color: #f1f3f5;
}

.order-basic-info {
    flex: 1;
}

.order-number {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.order-date {
    font-size: 0.85rem;
    color: #666;
}

.order-status-total {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1.5rem;
    min-width: 200px;
    justify-content: flex-end;
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.order-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.status-preparing {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.status-ready {
    background-color: #d4edda;
    color: #155724;
}

.order-status.status-delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.order-status.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-total {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.order-toggle-icon {
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.order-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.order-accordion-content.active {
    max-height: 500px;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.order-items {
    margin-bottom: 1rem;
}

.order-items h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
}

.order-item-price {
    font-weight: 500;
}

.order-details-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.no-orders {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .order-accordion-header {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-right: 40px; /* Espaço para o ícone */
    }
    
    .order-status-total {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        margin-right: 0;
    }
    
    .order-toggle-icon {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }
    
    /* Garantir que o ícone não interfira com o botão de fechar */
    .profile-panel .close-button {
        z-index: 10;
    }
}

/* Estilos para controles de pedidos */
.orders-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.orders-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.orders-filter label {
    font-size: 0.9rem;
    color: #666;
}

.orders-filter select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.orders-pagination button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.orders-pagination button:hover:not([disabled]) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.orders-pagination button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.orders-pagination span {
    font-size: 0.9rem;
    color: #666;
}

/* Estilos para o novo card de perfil */
.profile-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8a8a 100%);
    color: white;
    position: relative;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.profile-name-info {
    flex: 1;
}

.profile-name-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-name-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-edit-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-edit-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-info-section {
    margin-bottom: 1.5rem;
}

.profile-info-section:last-child {
    margin-bottom: 0;
}

.profile-info-section h4 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.profile-info-section h4 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.profile-info-item {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: baseline;
}

.profile-info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #666;
    width: 120px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    flex: 1;
}

/* Ajustes para a seção de pedidos */
.orders-section {
    margin-top: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .profile-card-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .profile-edit-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .profile-info-item {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Ajustar o layout para telas médias */
@media (max-width: 992px) and (min-width: 769px) {
    .order-accordion-header {
        flex-wrap: wrap;
    }
    
    .order-basic-info {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .order-status-total {
        margin-left: auto;
    }
}

/* Estilos para o resumo do pedido */
.order-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.order-summary-total {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
} 