/* meucadastro.css */

.logo-small {
    height: 35px;
    width: auto;
}

main.container {
    padding-top: 20px;
}

/* Fidelity Card */
.fidelity-card {
    background: linear-gradient(135deg, #FFD700 0%, #b8860b 100%);
    border-radius: 20px;
    padding: 25px;
    color: #000;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.fidelity-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.fidelity-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fidelity-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.fidelity-info p {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.points-badge {
    margin-top: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.points-badge span {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.points-badge small {
    font-weight: 700;
    letter-spacing: 1px;
}

.fidelity-icon i {
    font-size: 4rem;
    opacity: 0.3;
}

.fidelity-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 35px;
}

.section-header {
    margin-bottom: 20px;
    padding-left: 5px;
}

.section-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cards */
.profile-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-left: 5px;
}

.form-group input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
}

/* Order History */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.order-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--primary-color);
}

.order-main-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Status Colors */
.status-pendente {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
}

.status-aceito {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.status-preparando {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
}

.status-pronto {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-saiu-para-entrega {
    background: rgba(0, 191, 255, 0.1);
    color: deepskyblue;
}

.status-entregue {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-cancelado {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Notification Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    background-color: var(--card-bg);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    border-left: 5px solid var(--primary-color);
}

.toast.error {
    border-left-color: #ff4b2b;
}

.toast.success {
    border-left-color: #4cd137;
}

.toast i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .points-badge span {
        font-size: 2.5rem;
    }
}

/* Logout button style */
.btn-outline-danger {
    background: transparent;
    border: 2px solid #ff4b2b;
    color: #ff4b2b;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.btn-outline-danger:hover {
    background: #ff4b2b;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

/* Order Details Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.detail-items-list {
    list-style: none;
}

.detail-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.item-main {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-complements-list {
    list-style: none;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #f37d75;
}

.item-obs {
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 0.85rem;
    color: #ffcdd2;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-row {
    font-size: 1.2rem;
    font-weight: 800;
}

.order-card {
    cursor: pointer;
}

.btn-detail {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.order-card:hover .btn-detail {
    background: var(--primary-color);
    color: #000;
}