/* User Account Pages Styling - Bootstrap 5 Compatible */

/* Account Page Wrapper */
.my-account-wrapper {
    padding: 40px 0;
    min-height: 500px;
}

/* Breadcrumb Styling */
.breadcrumb-area {
    background-color: var(--bs-gray-100);
    padding: 20px 0;
    margin-bottom: 30px;
}

.breadcrumb-wrap .breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

/* Account Page Layout */
.myaccount-page-wrapper {
    margin-top: 30px;
}

/* Sidebar Navigation */
.myaccount-tab-menu {
    background-color: var(--bs-white);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 20px 0;
    margin-bottom: 30px;
}

.myaccount-tab-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--bs-gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.myaccount-tab-menu a:hover {
    background-color: var(--bs-gray-100);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}

.myaccount-tab-menu a.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}

.myaccount-tab-menu a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Content Area */
.myaccount-content {
    background-color: var(--bs-white);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 30px;
}

.myaccount-content h3 {
    color: var(--bs-gray-900);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bs-gray-200);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Welcome Text */
.welcome-text {
    background-color: var(--bs-info-bg-subtle);
    border-radius: var(--bs-border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.welcome-text p {
    margin-bottom: 5px;
    color: var(--bs-gray-800);
}

.welcome-text strong {
    color: var(--bs-primary);
}

/* Dashboard Cards */
.dashboard-stats .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.dashboard-stats .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dashboard-stats .card-body {
    padding: 25px;
}

.dashboard-stats .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bs-gray-600);
    margin-bottom: 10px;
}

.dashboard-stats h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Recent Orders Section */
.account-info-wrapper {
    margin-top: 30px;
}

.account-info-wrapper h4 {
    color: var(--bs-gray-800);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.order-card {
    transition: transform 0.2s ease;
}

.order-card:hover {
    transform: translateY(-3px);
}

/* Profile Information */
.profile-info-wrap {
    background-color: var(--bs-gray-100);
    border-radius: var(--bs-border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

.profile-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bs-gray-300);
}

.profile-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-field label {
    font-weight: 600;
    color: var(--bs-gray-700);
    min-width: 140px;
    margin-right: 15px;
    margin-bottom: 0;
}

.profile-field span {
    color: var(--bs-gray-600);
}

/* Address Management */
.address-item {
    background-color: var(--bs-gray-100);
    border-radius: var(--bs-border-radius);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.address-item:hover {
    background-color: var(--bs-gray-200);
}

.address-info h5 {
    color: var(--bs-gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.address-info p {
    color: var(--bs-gray-600);
    margin: 3px 0;
    font-size: 0.95rem;
}

.address-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Form Styling */
.account-form .form-label {
    font-weight: 600;
    color: var(--bs-gray-700);
    margin-bottom: 8px;
}

.account-form .form-control,
.account-form .form-select {
    border-radius: var(--bs-border-radius);
    border-color: var(--bs-gray-300);
    padding: 10px 15px;
}

.account-form .form-control:focus,
.account-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Security Settings */
.security-option {
    background-color: var(--bs-gray-100);
    border-radius: var(--bs-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-option h5 {
    color: var(--bs-gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.security-option p {
    color: var(--bs-gray-600);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.security-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--bs-gray-600);
}

.empty-state i {
    font-size: 4rem;
    color: var(--bs-gray-400);
    margin-bottom: 20px;
}

.empty-state h5 {
    color: var(--bs-gray-700);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Table Styling */
.table-responsive {
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.account-table {
    font-size: 0.95rem;
}

.account-table thead th {
    background-color: var(--bs-gray-100);
    border-bottom: 2px solid var(--bs-gray-300);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 15px;
}

.account-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.account-table tbody tr:hover {
    background-color: var(--bs-gray-50);
}

/* Badge Updates for Bootstrap 5 */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--bs-border-radius-sm);
}

/* Quick Actions */
.quick-actions {
    margin-top: 30px;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-actions .btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .myaccount-tab-menu {
        margin-bottom: 20px;
    }
    
    .myaccount-tab-menu a {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .myaccount-content {
        padding: 20px;
    }
    
    .profile-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-field label {
        margin-bottom: 5px;
    }
}

@media (max-width: 767.98px) {
    .my-account-wrapper {
        padding: 20px 0;
    }
    
    .breadcrumb-area {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .myaccount-content h3 {
        font-size: 1.25rem;
    }
    
    .dashboard-stats .card-body {
        padding: 20px;
    }
    
    .address-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .address-actions {
        width: 100%;
    }
    
    .address-actions .btn {
        flex: 1;
    }
    
    .security-option {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .quick-actions .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

@media (max-width: 575.98px) {
    .myaccount-content {
        padding: 15px;
    }
    
    .welcome-text {
        padding: 15px;
    }
    
    .profile-info-wrap {
        padding: 15px;
    }
    
    .dashboard-stats h2 {
        font-size: 1.5rem;
    }
    
    .account-table {
        font-size: 0.85rem;
    }
    
    .account-table thead th,
    .account-table tbody td {
        padding: 10px;
    }
}

/* Accessibility Improvements */
.myaccount-tab-menu a:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .myaccount-tab-menu a.active {
        border-left-width: 5px;
    }
    
    .card {
        border: 1px solid var(--bs-gray-800);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .order-card,
    .btn,
    .myaccount-tab-menu a {
        transition: none;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .my-account-wrapper {
        background-color: var(--bs-gray-900);
    }
    
    .myaccount-content,
    .myaccount-tab-menu,
    .card {
        background-color: var(--bs-gray-800);
        color: var(--bs-gray-100);
    }
    
    .breadcrumb-area,
    .profile-info-wrap,
    .address-item,
    .security-option {
        background-color: var(--bs-gray-800);
    }
}