/* User Dashboard Styles */
.user-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: 100%;
}

.user-profile-card {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #fff;
}

.user-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.user-email {
    font-size: 13px;
}

.referral-badge {
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
    display: inline-block;
}

/* Network Tree Styling */
.network-tree {
    overflow-x: auto;
}

.tree-list {
    list-style-type: none;
    padding-left: 20px;
    position: relative;
}

.tree-list li {
    position: relative;
    padding-left: 30px;
    margin: 15px 0;
}

.tree-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 20px;
    height: 1px;
    background: #ddd;
}

.tree-list li:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ddd;
}

.tree-list li:last-child:after {
    height: 15px;
}

.user-menu {
    margin-top: 20px;
}

.user-menu .nav-item {
    margin-bottom: 5px;
}

.user-menu .nav-link {
    color: #555;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem !important;
}

.user-menu .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.user-menu .nav-link:hover {
    background: #f8f9fa;
    color: #2575fc;
}

.user-menu .nav-link.active {
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

/* Dashboard Content Styles */
.dashboard-header {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.dashboard-header h3 {
    font-weight: 700;
    color: #333;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: white;
}

.stat-card-1 .stat-icon {
    background: linear-gradient(45deg, #ff4e50, #f9d423);
}

.stat-card-2 .stat-icon {
    background: linear-gradient(45deg, #4776E6, #8E54E9);
}

.stat-card-3 .stat-icon {
    background: linear-gradient(45deg, #1D976C, #93F9B9);
}

.stat-content h6 {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.stat-content h3 {
    font-weight: 700;
    margin: 0;
    font-size: 24px;
}

.stat-content h3 small {
    font-size: 14px;
    font-weight: 500;
    color: #777;
}

/* Monthly Stats Card */
.monthly-stats-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.monthly-stats-card .card-header {
    /* background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%); */
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.monthly-stats-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.monthly-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.monthly-stats-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.monthly-stats-list li:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #555;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* Pending Actions Card */
.pending-actions-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.pending-actions-card .card-header {
    /* background: linear-gradient(45deg, #11998e, #38ef7d); */
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.pending-actions-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.pending-actions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.pending-actions-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.pending-actions-list li:last-child {
    border-bottom: none;
}

.quick-actions .btn {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
}

/* Referral Card */
.referral-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.referral-card .card-body {
    padding: 25px;
}

.referral-stats {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #2575fc;
}

.stat-item p {
    color: #777;
    margin: 5px 0 0 0;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-share-buttons .btn {
    color: white;
    font-size: 13px;
    padding: 8px 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.btn-facebook {
    background: #3b5998;
}

.btn-twitter {
    background: #1da1f2;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-telegram {
    background: #0088cc;
}

/* Ranking Cards */
.ranking-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.ranking-card.locked {
    opacity: 0.8;
}

.ranking-card.unlocked {
    border-top: 3px solid #4CAF50;
}

.ranking-badge {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

.ranking-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.unlocked-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4CAF50;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ranking-content h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.ranking-bonus {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.ranking-bonus span {
    font-size: 13px;
    color: #777;
}

.ranking-bonus strong {
    color: #2575fc;
    font-size: 16px;
}
.social-share-buttons svg{
    margin-top: 0 !important;
}
.ranking-status {
    font-size: 13px;
}

/* Profile Page Specific Styles */
.profile-form-card, .password-form-card, .avatar-upload-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.profile-form-card .card-header, 
.password-form-card .card-header,
.avatar-upload-card .card-header {
    /* background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%); */
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

.profile-form-card .card-header h5,
.password-form-card .card-header h5,
.avatar-upload-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.profile-form-card .card-body,
.password-form-card .card-body,
.avatar-upload-card .card-body {
    padding: 25px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 15px;
    height: auto;
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.25);
}

/* .btn-lg {
    padding: 10px 30px;
    font-weight: 500;
} */

/* Avatar Upload Styles */
.avatar-preview-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Investment Details Page Styles */
.investment-details-page .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.investment-details-page .card-header {
    /* background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%); */
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

.investment-details-page .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.investment-details-page .card-body {
    padding: 25px;
}

.list-group-item {
    padding: 15px;
    border-color: #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.meta-item i {
    margin-right: 10px;
    font-size: 18px;
}

.meta-item span {
    margin-right: 5px;
    color: #666;
}

.bank-details {
    border-left: 3px solid #2575fc;
}

/* Transaction Page Specific Styles */
.transaction-filter-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.transaction-filter-card .card-body {
    padding: 20px;
}

.transaction-table-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.transaction-table {
    margin-bottom: 0;
}

.transaction-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #eee;
    padding: 15px 20px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.transaction-table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-table tbody tr:last-child td {
    border-bottom: none;
}

.transaction-table tbody tr:hover {
    background-color: #f9f9f9;
}

.trx-badge {
    background: #f0f4f9;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 13px;
    color: #333;
}

.amount {
    font-weight: 600;
}

.balance-change small {
    font-size: 12px;
}

.badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

/* Light background badges */
.bg-primary-light {
    background-color: rgba(74, 108, 247, 0.1);
}
.bg-success-light {
    background-color: rgba(40, 199, 111, 0.1);
}
.bg-info-light {
    background-color: rgba(45, 206, 255, 0.1);
}
.bg-warning-light {
    background-color: rgba(255, 171, 0, 0.1);
}
.bg-danger-light {
    background-color: rgba(234, 84, 85, 0.1);
}
.bg-dark-light {
    background-color: rgba(30, 30, 30, 0.1);
}
.bg-secondary-light {
    background-color: rgba(130, 134, 139, 0.1);
}

/* Empty State */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    color: #6a11cb;
    margin-bottom: 20px;
}

.empty-state h5 {
    margin-bottom: 10px;
}

/* Pagination Styles */
.pagination {
    justify-content: center;
}

.page-item.active .page-link {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.page-link {
    color: #6a11cb;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 6px !important;
}

.transaction-table thead tr th{
    padding: 0 !important;
    font-size: 18px !important;
}
.transaction-table tbody tr td{
    padding: 0 !important;
    border: none !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .transaction-table thead {
        display: none;
    }
    
    .transaction-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .transaction-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .transaction-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        color: #555;
    }
    
    .transaction-table tbody td:last-child {
        border-bottom: none;
    }
    
    .transaction-table tbody td[data-label="Balance"] .balance-change {
        display: flex;
        gap: 10px;
    }
    
    .transaction-table tbody td[data-label="Balance"] .balance-change small {
        display: inline;
    }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .investment-details-page .card-body {
        padding: 20px;
    }
    
    .list-group-item {
        padding: 12px;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .profile-form-card, 
    .password-form-card {
        margin-bottom: 20px;
    }
    
    .avatar-preview-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .profile-form-card .card-body,
    .password-form-card .card-body,
    .avatar-upload-card .card-body {
        padding: 20px;
    }
    
    .form-control, .form-select {
        padding: 8px 12px;
    }
}

@media (max-width: 991px) {
    .user-sidebar {
        margin-bottom: 30px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .dashboard-header {
        padding: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 20px;
    }
    
    .social-share-buttons {
        grid-template-columns: 1fr;
    }
}