/* Ecommerce Customer Page Styles for MartFury Theme */

/* Customer Page Layout */
.bb-customer-page {
    background-color: #f8f9fa;
    padding: 20px 0;
}

.bb-customer-page .ps-section__left {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
    margin-bottom: 20px;
}

.bb-customer-page .ps-widget--account-dashboard {
    padding: 0;
}

.bb-customer-page .ps-widget__content {
    padding: 0;
}

.bb-customer-page .ps-widget__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bb-customer-page .ps-widget__content ul li {
    border-bottom: 1px solid #f0f0f0;
}

.bb-customer-page .ps-widget__content ul li:last-child {
    border-bottom: none;
}

.bb-customer-page .ps-widget__content ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bb-customer-page .ps-widget__content ul li a:hover {
    background-color: #f8f9fa;
    color: #333;
}

.bb-customer-page .ps-widget__content ul li a.active {
    background-color: #007bff;
    color: white;
}

.bb-customer-page .ps-widget__content ul li a i {
    margin-left: 10px;
    font-size: 18px;
}

.bb-customer-page .ps-section__right {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
}

/* Customer Profile Section */
.bb-customer-profile-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.bb-customer-profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
}

.bb-customer-profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.bb-customer-profile-avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bb-customer-profile-avatar-overlay:hover {
    background: #0056b3;
}

.bb-customer-profile-avatar-overlay label {
    margin: 0;
    cursor: pointer;
    color: white;
    font-size: 12px;
}

.bb-customer-profile-avatar-overlay input {
    display: none;
}

.bb-customer-profile-info h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.bb-customer-profile-info p {
    color: #666;
    margin: 0;
}

/* Cards Styling */
.bb-customer-page .card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-customer-page .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bb-customer-page .card .card-body {
    padding: 25px;
}

.bb-customer-page .card .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.bb-customer-page .card .card-text {
    color: #666;
    margin-bottom: 20px;
}

/* Buttons */
.bb-customer-page .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.bb-customer-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.bb-customer-page .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.bb-customer-page .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.bb-customer-page .btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.bb-customer-page .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.bb-customer-page .btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.bb-customer-page .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.bb-customer-page .btn-info:hover {
    background-color: #117a8b;
    border-color: #117a8b;
}

/* Tables */
.bb-customer-page .table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.bb-customer-page .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.bb-customer-page .table td {
    vertical-align: middle;
    color: #666;
}

.bb-customer-page .table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.bb-customer-page .badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Icons */
.bb-customer-page .rounded-circle {
    border-radius: 50%;
}

/* RTL Support */
[dir="rtl"] .bb-customer-page .ps-widget__content ul li a i {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .bb-customer-profile-avatar-overlay {
    left: 0;
    right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .bb-customer-page {
        padding: 10px 0;
    }
    
    .bb-customer-page .ps-section__right {
        padding: 15px;
    }
    
    .bb-customer-profile-wrapper {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .bb-customer-page .card .card-body {
        padding: 15px;
    }
    
    .bb-customer-profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .bb-customer-profile-avatar-img {
        width: 60px;
        height: 60px;
    }
}

/* Additional styles for prescription page */
.bb-customer-page .bg-primary.bg-opacity-10 {
    background-color: rgba(0, 123, 255, 0.1) !important;
}

.bb-customer-page .bg-success.bg-opacity-10 {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.bb-customer-page .bg-info.bg-opacity-10 {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.bb-customer-page .bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bb-customer-page .bg-primary.bg-opacity-20 {
    background-color: rgba(0, 123, 255, 0.2) !important;
}

.bb-customer-page .bg-success.bg-opacity-20 {
    background-color: rgba(40, 167, 69, 0.2) !important;
}

.bb-customer-page .bg-info.bg-opacity-20 {
    background-color: rgba(23, 162, 184, 0.2) !important;
}

.bb-customer-page .bg-warning.bg-opacity-20 {
    background-color: rgba(255, 193, 7, 0.2) !important;
}

.bb-customer-page .bg-light.bg-opacity-50 {
    background-color: rgba(248, 249, 250, 0.5) !important;
}

/* Additional styles for MartFury theme compatibility */
.bb-customer-page .ps-widget__content ul li a svg {
    margin-left: 10px;
    font-size: 18px;
}

/* RTL Support for MartFury */
[dir="rtl"] .bb-customer-page .ps-widget__content ul li a svg {
    margin-left: 0;
    margin-right: 10px;
}

/* Fix for MartFury theme structure */
.bb-customer-page .ps-section__left {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.bb-customer-page .ps-section__right {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
}

/* Ensure proper spacing in MartFury theme */
.bb-customer-page .row {
    margin-bottom: 20px;
}

.bb-customer-page .card {
    margin-bottom: 20px;
}

/* Fix for table styling in MartFury */
.bb-customer-page .table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bb-customer-page .table {
    margin-bottom: 0;
}

/* Fix for button styling in MartFury */
.bb-customer-page .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Fix for modal styling */
.bb-customer-page .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bb-customer-page .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
}

.bb-customer-page .modal-body {
    padding: 20px;
}

.bb-customer-page .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px;
}

/* Fix for MartFury theme navigation icons */
.bb-customer-page .ps-widget__content ul li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Fix for MartFury theme responsive design */
@media (max-width: 992px) {
    .bb-customer-page .ps-section__left {
        margin-bottom: 20px;
    }
    
    .bb-customer-page .ps-section__right {
        padding: 20px;
    }
}

/* Fix for MartFury theme card hover effects */
.bb-customer-page .card {
    transition: all 0.3s ease;
}

.bb-customer-page .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}