/* ===== GENERAL STYLES ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.main-container {
    top: 110px;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0px 20px 0px;
}

.dashboard-header input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===== SHARE BUTTON STYLES ===== */
.share-button-overview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-button-overview .link-box {
    padding: 1px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-button-overview .btn-copy {
    background-color: #e3f9e5;
    color: #28a745;
    border: 1px solid #28a745;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-button-overview .btn-copy:hover {
    background-color: #28a745;
    color: #fff;
}

.share-button-overview .btn-share {
    background-color: #f0e5c9;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== STATS CONTAINER STYLES ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

/* ===== CHART & CONTAINER STYLES ===== */
.chart-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== TABLE STYLES ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #f4f4f4;
    color: #333;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
}

/* ===== AFFILIATE REPORT STYLES ===== */
.account_affiliate-report-details {
    max-width: 1100px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.account_affiliate-report-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.account_affiliate-report-table {
    width: 100%;
    border-collapse: collapse;
}

.account_affiliate-report-table th,
.account_affiliate-report-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.account_affiliate-report-table th {
    background-color: #f4f4f4;
    color: #333;
}

.account_affiliate-report-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.account_affiliate-report-table tr:hover {
    background-color: #f1f1f1;
}

/* ===== WITHDRAW REQUEST STYLES ===== */
.withdraw-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.withdraw-header {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 15px;
}

.withdraw-summary {
    font-size: 18px;
    margin-bottom: 10px;
}

.withdraw-summary span {
    font-weight: bold;
    color: #333;
}

.withdraw-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.withdraw-warning {
    margin-top: 15px;
    font-size: 20px;
    color: #d9534f;
    font-weight: bold;
}

.withdraw-note {
    font-size: 17px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

.withdraw-button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #d6eaff;
    color: #0056b3;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: not-allowed;
}

/* ===== CUSTOM SELECT STYLES ===== */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.custom-select-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.custom-select-item:hover {
    background: #f0f0f0;
}

.custom-select-item img {
    width: 100px;
    height: 30px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== WITHDRAW HISTORY STYLES ===== */
.withdraw-history {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.withdraw-history h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.history-table th,
.history-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.history-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.history-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.history-table tbody tr:nth-child(even) {
    background-color: #fff;
}

.history-table tbody tr:hover {
    background-color: #f5f5f5;
}

.history-table td:last-child {
    text-transform: capitalize;
}

/* ===== IMAGE UPLOAD STYLES ===== */
#selectedImageContainer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.selectedImageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    margin-right: 10px;
}

input[type="file"] {
    cursor: pointer;
    display: block;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.img-qr {
    display: inline-block;
    overflow: hidden;
    position: relative;
}

/* ===== INSTRUCT CONTAINER STYLES ===== */
.instruct-content {
    font-size: 16px;
    -webkit-mask-image: -webkit-linear-gradient(#fff, hsla(0, 0%, 100%, 0));
    max-height: 180px;
}

.instruct-img {
    width: 100%;
    height: 300px;
}

.copy-button {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
}

.instruct-title,
.modal-instruct-title {
    font-size: 17px;
    font-weight: bold;
}

/* ===== SHARE MODAL STYLES ===== */
.modal-share-link-course .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modal-share-link-course .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.modal-share-link-course .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-share-link-course .modal-title i {
    color: #007bff;
}

.modal-share-link-course .modal-body {
    padding: 24px;
}

/* Social Share Buttons */
.modal-share-link-course .list-icon-content {
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 20px 0 30px;
    list-style: none;
    justify-content: center;
}

.modal-share-link-course .icon-content {
    position: relative;
}

.modal-share-link-course .btn-share-course {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.modal-share-link-course .btn-share-course:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.modal-share-link-course .btn-share-course:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Social Media Colors */
.modal-share-link-course .facebook { 
    background-color: #1877F2;
    background: linear-gradient(45deg, #1877F2, #0d6efd);
}

.modal-share-link-course .telegram { 
    background-color: #0088cc;
    background: linear-gradient(45deg, #0088cc, #00a8ff);
}

.modal-share-link-course .twitter { 
    background-color: #1DA1F2;
    background: linear-gradient(45deg, #1DA1F2, #0d6efd);
}

.modal-share-link-course .linkedin { 
    background-color: #0077B5;
    background: linear-gradient(45deg, #0077B5, #0d6efd);
}

.modal-share-link-course .whatsapp { 
    background-color: #25D366;
    background: linear-gradient(45deg, #25D366, #28a745);
}

/* Tooltip */
.modal-share-link-course .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.modal-share-link-course .icon-content:hover .tooltip {
    opacity: 1;
}

/* Copy URL Section */
.modal-share-link-course .copy-url {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-share-link-course .copy-url input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.modal-share-link-course .btn-copy-url-course,
.modal-share-link-course .btn-share-url-course {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-share-link-course .btn-copy-url-course:hover,
.modal-share-link-course .btn-share-url-course:hover {
    background: #0056b3;
}

.modal-share-link-course .btn-copy-url-course i,
.modal-share-link-course .btn-share-url-course i {
    font-size: 16px;
}

/* ===== CAMPAIGN REPORT STYLES ===== */
.campaign-report-container {
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.campaign-report-container .card-header {
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

.campaign-report-container .card-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Report Filters */
.campaign-report-container .form-group {
    margin-bottom: 15px;
}

.campaign-report-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.campaign-report-container .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.campaign-report-container .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Report Table */
.campaign-report-container .table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.campaign-report-container .table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
    font-weight: 600;
    color: #495057;
}

.campaign-report-container .table td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* Status Badges */
.campaign-report-container .badge {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.campaign-report-container .badge.bg-success {
    background-color: #28a745;
    color: #fff;
}

.campaign-report-container .badge.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Pagination */
.campaign-report-container .pagination {
    margin: 0;
}

.campaign-report-container .page-link {
    padding: 8px 12px;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.campaign-report-container .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.campaign-report-container .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* ===== AFFILIATE TABS STYLES ===== */
.nav-tabs .nav-link {
    color: #333;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 20px;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #007bff !important;
    font-weight: bold;
    background: #eaf4ff;
    border-bottom: 3px solid #007bff;
    border-radius: 6px 6px 0 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 800px) {
    .dashboard-header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    
    .dashboard-header input {
        margin-top: 10px;
    }
}

@media (max-width: 467px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .share-button-overview .link-box span {
        display: none;
    }
    
    .modal-share-link-course .modal-dialog {
        margin: 10px;
    }
    
    .modal-share-link-course .list-icon-content {
        gap: 10px;
    }
    
    .modal-share-link-course .btn-share-course {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .modal-share-link-course .copy-url {
        flex-direction: column;
    }
    
    .modal-share-link-course .copy-url input {
        width: 100%;
    }
    
    .modal-share-link-course .btn-copy-url-course,
    .modal-share-link-course .btn-share-url-course {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .campaign-report-container .row {
        margin: 0 -10px;
    }
    
    .campaign-report-container .col-md-3 {
        padding: 0 10px;
    }
    
    .campaign-report-container .table {
        font-size: 14px;
    }
    
    .campaign-report-container .table th,
    .campaign-report-container .table td {
        padding: 8px;
    }
}