/* My Account Page Styles */

/* Account Hero Section */
.account-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.account-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.account-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.account-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Account Status Section */
.account-status-section {
    padding: 2rem 0;
    background: #f8fafc;
}

.account-status-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Account Content Section */
.account-content-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.account-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Account Cards */
.account-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.account-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.account-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.account-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.cart-count-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.account-card-content {
    padding: 1.5rem;
}

/* User Information Styles */
.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.user-info-label {
    font-weight: 500;
    color: #64748b;
}

.user-info-value {
    color: #1e293b;
    font-weight: 500;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.edit-profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Cart Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #64748b;
    font-size: 1.5rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #059669;
    font-weight: 600;
}

.cart-item-quantity {
    color: #64748b;
    font-size: 0.875rem;
}

.cart-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.view-cart-btn, .checkout-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.view-cart-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.view-cart-btn:hover {
    background: #e2e8f0;
}

.checkout-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* Order Status Styles */
.order-status {
    text-align: center;
    padding: 2rem 1rem;
}

.order-status-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #64748b;
    font-size: 2rem;
}

.order-status-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.order-status-message {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.order-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

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

.order-detail-label {
    color: #64748b;
    font-weight: 500;
}

.order-detail-value {
    color: #1e293b;
    font-weight: 600;
}

/* Seller Contact Styles */
.seller-contact-status {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.contact-status-icon.contacted {
    background: linear-gradient(135deg, #059669, #047857);
}

.contact-status-icon.not-contacted {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.contact-status-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-status-message {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.contact-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Quick Links Styles */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.quick-link:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.quick-link-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.quick-link-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Account Actions Styles */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signin-btn, .login-btn, .logout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.signin-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.login-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.logout-btn {
    background: #ef4444;
    color: white;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Sign In Form Styles */
.signin-form {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    color: #1e293b !important;
    background: white !important;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select,
.form-textarea {
    color: #1e293b !important;
    background: white !important;
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af !important;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

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

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-message {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-hero-title {
        font-size: 2rem;
    }
    
    .account-hero-subtitle {
        font-size: 1rem;
    }
    
    .account-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .account-card-header {
        padding: 1rem;
    }
    
    .account-card-content {
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-image {
        margin-right: 0;
    }
    
    .quick-links {
        gap: 0.75rem;
    }
    
    .quick-link {
        padding: 0.75rem;
    }
    
    .quick-link-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .account-hero {
        padding: 60px 0 40px;
    }
    
    .account-hero-title {
        font-size: 1.75rem;
    }
    
    .account-status-section,
    .account-content-section {
        padding: 1.5rem 0;
    }
    
    .account-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .account-card-icon {
        margin-right: 0;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #64748b;
}

.loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success/Error States */
.status-success {
    color: #059669;
}

.status-warning {
    color: #f59e0b;
}

.status-error {
    color: #ef4444;
}

.status-info {
    color: #3b82f6;
}

/* Order Tracker Styles */
.order-tracker-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.order-tracker-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.order-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.order-info h4.order-id {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.order-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-summary {
    text-align: right;
}

.order-total {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.order-vendor {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Progress Bar */
.order-progress-bar {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    position: absolute;
    top: 100%;
    right: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Status Steps */
.order-status-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.status-step.completed {
    background: #f0fdf4;
    border-color: #10b981;
}

.status-step:hover {
    background: #f3f4f6;
}

.status-step.completed:hover {
    background: #dcfce7;
}

.step-checkbox {
    position: relative;
    flex-shrink: 0;
}

.step-checkbox input[type="checkbox"] {
    appearance: none;
    width: 48px;
    height: 48px;
    border: 3px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.step-checkbox input[type="checkbox"]:checked {
    background: #10b981;
    border-color: #10b981;
}

.step-checkbox input[type="checkbox"]:hover {
    border-color: #9ca3af;
    transform: scale(1.05);
}

.step-checkbox input[type="checkbox"]:checked:hover {
    background: #059669;
}

.step-checkbox label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.step-checkbox label i {
    font-size: 1.5rem;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.step-checkbox input[type="checkbox"]:checked + label i {
    color: #ffffff;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.status-step.completed .step-title {
    color: #059669;
}

.step-date {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Order Address */
.order-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.order-address i {
    color: #3b82f6;
}

/* Responsive Design for Order Tracker */
@media (max-width: 768px) {
    .order-tracker-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-summary {
        text-align: left;
    }
    
    .order-total {
        font-size: 1.25rem;
    }
    
    .status-step {
        padding: 0.75rem;
    }
    
    .step-checkbox input[type="checkbox"] {
        width: 40px;
        height: 40px;
    }
    
    .step-checkbox label i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .order-tracker-card {
        padding: 1rem;
    }
    
    .order-info h4.order-id {
        font-size: 1rem;
    }
    
    .order-total {
        font-size: 1.125rem;
    }
    
    .step-title {
        font-size: 0.875rem;
    }
    
    .step-date {
        font-size: 0.75rem;
    }
}