/* Account Page Styles */
.account-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Account header with logout button */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #d32f2f;
}

.account-container h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.2rem;
}

/* Navigation auth container styling */
#auth-container .info {
    display: flex;
    flex-direction: column;
}

#auth-container .info a {
    margin-bottom: 5px;
}

#auth-container .info a:last-child {
    margin-bottom: 0;
}

/* Mobile navigation auth styling */
.mobile-cart-login {
    display: flex;
    align-items: center;
}

.mobile-cart-login li {
    margin-right: 15px;
}

.account-container h2 {
    margin-bottom: 20px;
    color: #444;
    font-size: 1.5rem;
}

.account-container h3 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.2rem;
}

/* Tabs */
.account-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    color: #4a90e2;
    font-weight: 600;
}

.tab-button.active:after {
    background-color: #4a90e2;
}

.tab-button:hover:not(.active) {
    color: #4a90e2;
}

.tab-content {
    padding: 20px 0;
}

.hidden {
    display: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.primary-button, .secondary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: #4a90e2;
    color: white;
}

.primary-button:hover {
    background-color: #3a80d2;
}

.secondary-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-button:hover {
    background-color: #e9e9e9;
}

/* Messages */
.message, .error-message {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.error-message, .message.error {
    background-color: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.message.success {
    background-color: #efe;
    color: #070;
    border-left: 4px solid #070;
}

.message.info {
    background-color: #eef;
    color: #44f;
    border-left: 4px solid #44f;
}

#loading-indicator {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Order Cards */
.order-card {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.order-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.order-date {
    margin: 5px 0 0;
    font-size: 14px;
    color: #777;
}

.order-total {
    font-weight: 600;
    font-size: 16px;
}

.order-status {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.paid {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.refunded {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.fulfilled {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.unfulfilled, .status-badge.partially_fulfilled {
    background-color: #fff3cd;
    color: #856404;
}

.order-items {
    padding: 15px 20px;
}

.order-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    margin: 0 0 5px;
    font-weight: 600;
    font-size: 16px;
}

.item-variant, .item-quantity, .item-price {
    margin: 3px 0;
    font-size: 14px;
    color: #666;
}

/* Address Cards */
.address-card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.address-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.address-info {
    flex: 1;
    position: relative;
}

.default-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #4a90e2;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.address-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-left: 20px;
}

.address-actions button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.edit-address-button, .make-default-button {
    color: #4a90e2;
}

.edit-address-button:hover, .make-default-button:hover {
    background-color: #f0f7ff;
    border-color: #4a90e2;
}

.delete-address-button {
    color: #dc3545;
}

.delete-address-button:hover {
    background-color: #fff5f5;
    border-color: #dc3545;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .account-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-total {
        margin-top: 10px;
    }
    
    .address-content {
        flex-direction: column;
    }
    
    .address-actions {
        flex-direction: row;
        margin-left: 0;
        margin-top: 15px;
    }
} 