/* Custom Styles to Override Default Theme */

/* Table Styles */
.table-responsive .table tr td:first-child {
    padding-left: 30px !important;
}

.accordion .accordion-item .accordion-header .accordion-button:after {
    background: #fff !important;
    color: #000000 !important;
    width: 10px !important;
    height: 10px !important;
    background-size: 10px !important;
    filter: invert(0) !important;
    border-radius: 50% !important;
}

.table-responsive .table tr td {
    padding: 12 px 15px !important;
    white-space: nowrap;
    vertical-align: middle;
}

.current-callback-notification {
    max-height: 300px;
    overflow-y: auto;
}
    /* DateRangePicker Styles */
    .reportrange-picker {
        background: #fff;
        cursor: pointer;
        padding: 5px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        display: flex;
        align-items: center;
    }

    .reportrange-picker input.form-control {

        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
    }

    .reportrange-picker input.form-control:focus {
        box-shadow: none;
        outline: none;
    }

    /* Fix for duplicate date pickers */
    .daterangepicker {
        z-index: 1100 !important;
    }

    /* Hide any duplicate date pickers */
    .daterangepicker+.daterangepicker {
        display: none !important;
    }

    /* Lead Type Color Indicators */
    .color-indicator {
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .lead-type-item {
        cursor: pointer;
        transition: background-color 0.2s;
        padding: 8px 5px;
        border-radius: 6px;
    }

    .lead-type-item:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    .lead-type-item:hover .color-indicator {
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }

    .lead-type-item.active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .lead-type-link {
        font-weight: 500;
        text-decoration: none;
        color: #333;
        transition: color 0.2s;
    }

    .lead-type-item:hover .lead-type-link {
        color: #3454d1;
    }

    /* Lead Status Styles */
    .status-list-container {
        max-height: 490px;
        overflow-y: auto;
        background-color: #fcfcfc;
        border-top: 1px solid #eee;
        scrollbar-width: thin;
    }

    .status-list-container::-webkit-scrollbar {
        width: 6px;
    }

    .status-list-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .status-list-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .status-list-container::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

    .status-list {
        padding: 10px;
    }

    .lead-status-item {
        padding: 6px 5px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s;
        margin-bottom: 2px;
    }

    .lead-status-item:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    .lead-status-item:hover .color-indicator {
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }

    .status-list hr {
        margin: 3px 0;
        opacity: 0.5;
    }






.table td {
    font-size: 13px !important;
    /* Force TD font size to 13px */
}




/* Table Styling */
.table {
    margin-bottom: 0;
    font-size: 13px;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Checkbox styling */
.table .form-check-input {
    margin: 0;
    cursor: pointer;
}

/* Badge Styling */
.table .badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 12px;
    border-radius: 4px;
}

/* Action Buttons */
.table .avatar-text {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.2s;
}

.table .avatar-text:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

/* Comment cell styling */
.comment-container {
    max-width: 200px;
}

.comment-container .text-truncate {
    max-width: 160px;
    display: inline-block;
    vertical-align: middle;
}

.comment-tooltip {
    margin-left: 4px;
    color: #6c757d;
}

.comment-tooltip:hover {
    color: #0d6efd;
}

/* Phone number styling */
.table td a {
    color: #495057;
    text-decoration: none;
}

.table td a:hover {
    color: #0d6efd;
    text-decoration: none;
}

/* Responsive table */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Pagination Styling */
.pagination {
    margin: 0;
    gap: 4px;
}

.page-link {
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #dee2e6;
    color: #495057;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Card Styling */
.card.stretch {
    border-radius: 8px;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Loading State */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 16px !important;
    margin-top: 100px !important;
}

/* Status badge colors */
.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

/* Dropdown menu in table */
.table .dropdown-menu {
    min-width: 160px;
    padding: 8px 0;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.table .dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    color: #495057;
}

.table .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.table .dropdown-item i {
    width: 16px;
    margin-right: 8px;
}

.table .dropdown-divider {
    margin: 4px 0;
}

.filter-dropdown {
    min-width: 320px !important;
    font-size: 13px;
}

.filter-dropdown .form-label {
    font-size: 13px;
}

.filter-dropdown .dropdown-header {
    font-size: 14px;
    padding: 0 0 10px 0;
}

.filter-dropdown .form-control,
.filter-dropdown .form-select,
.filter-dropdown .input-group-text,
.filter-dropdown .form-check-label {
    font-size: 13px;
}

.filter-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

@media (max-width: 576px) {
    .filter-dropdown {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.form-select:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px;
    float: left;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
    float: right;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 30px 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #495057;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 12px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 15px;
    font-size: 13px;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 15px;
}
/* 
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin-left: 5px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background-color: #fff;
    color: #495057 !important;
    cursor: pointer;
} */

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0d6efd !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Clear floats */
.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 767px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: center;
    }

    .dataTables_wrapper .dataTables_filter {
        margin-top: 15px;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
    }

    .dataTables_wrapper .dataTables_paginate {
        margin-top: 15px;
    }
}