/* ========================================
   SCRIPT MANAGEMENT STYLES
   ======================================== */

/* Enhanced Script Modal Styles - Higher z-index and better visibility */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important; /* Higher than other modals */
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Script Selection Modal */
.script-selection-modal .modal-content {
    max-width: 600px !important;
    z-index: 10000 !important;
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 25px !important;
}

/* Script Display Modal */
.script-display-modal .modal-content {
    width: 95% !important;
    max-width: 1000px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    position: relative !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 25px !important;
}

/* Script Option Buttons - Fixed Text Color */
.script-option-btn {
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    font-size: 16px !important;
    color: #333 !important; /* Ensure text is visible */
    font-weight: 500 !important;
    margin-bottom: 10px !important;
    display: block !important;
    width: 100% !important;
}

.script-option-btn:hover {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
}

/* Lead Script Button - Fixed Text Color */
.lead-script-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #0c7489 100%) !important;
    border: none !important;
    color: white !important; /* Explicit white text */
    transition: all 0.3s ease !important;
    margin: 2px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.lead-script-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0a5a6b 100%) !important;
    color: white !important; /* Ensure white text on hover */
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3) !important;
}

.lead-script-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3) !important;
}

/* Modal Headers */
.script-selection-modal .modal-header,
.script-display-modal .modal-header {
    border-bottom: 1px solid #dee2e6 !important;
    padding: 20px 25px !important;
    background: #f8f9fa !important;
    border-radius: 8px 8px 0 0 !important;
    margin: -25px -25px 25px -25px !important;
}

.script-selection-modal .modal-header h3,
.script-display-modal .modal-header h3 {
    margin: 0 !important;
    color: #333 !important;
    font-weight: 600 !important;
}

/* Close Button */
.script-selection-modal .close-btn,
.script-display-modal .close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 5px !important;
    line-height: 1 !important;
    z-index: 10001 !important;
}

.script-selection-modal .close-btn:hover,
.script-display-modal .close-btn:hover {
    color: #333 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* Script Content Area */
.script-content {
    margin-bottom: 30px !important;
    padding: 25px !important;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

.script-text p {
    margin: 0 0 15px 0 !important;
    line-height: 1.6 !important;
    color: #333 !important;
    font-size: 16px !important;
}

/* Current Lead Info */
.current-lead-info,
.lead-selection-info {
    padding: 15px !important;
    background: #e7f3ff !important;
    border: 1px solid #b3d9ff !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    color: #0c5460 !important;
}

.current-lead-info h4,
.lead-selection-info h4 {
    margin: 0 0 10px 0 !important;
    color: #0c5460 !important;
    font-weight: 600 !important;
}

/* Script Options Container */
.script-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

/* Notes Section */
.script-notes-section {
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

.script-notes-section h4 {
    margin-bottom: 15px !important;
    color: #333 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.script-notes-section h4 i {
    margin-right: 8px !important;
    color: #007bff !important;
}

.script-notes-section textarea {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-family: Arial, sans-serif !important;
    resize: vertical !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    min-height: 120px !important;
    position: relative !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.script-notes-section textarea:focus {
    border-color: #007bff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

/* Button Styles */
.notes-actions {
    margin-top: 15px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.notes-actions .btn {
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.notes-actions .btn-primary {
    background: #007bff !important;
    border: 1px solid #007bff !important;
    color: white !important;
}

.notes-actions .btn-primary:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-1px) !important;
}

.notes-actions .btn-secondary {
    background: #6c757d !important;
    border: 1px solid #6c757d !important;
    color: white !important;
}

.notes-actions .btn-secondary:hover {
    background: #545b62 !important;
    border-color: #545b62 !important;
    transform: translateY(-1px) !important;
}

/* Lead Context */
.lead-context,
.no-lead-context {
    margin-top: 15px !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    font-style: italic !important;
    font-size: 14px !important;
}

.lead-context {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.no-lead-context {
    background: #fff3cd !important;
    border: 1px solid #ffeeba !important;
    color: #856404 !important;
}

/* Existing Notes */
.existing-notes-section {
    border-top: 2px solid #dee2e6 !important;
    padding-top: 25px !important;
    margin-top: 30px !important;
}

.existing-notes-section h4 {
    margin-bottom: 20px !important;
    color: #333 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.existing-notes-section h4 i {
    margin-right: 8px !important;
    color: #007bff !important;
}

.script-note-item {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 18px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.script-note-item:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1) !important;
}

.note-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.note-header strong {
    color: #007bff !important;
    font-weight: 600 !important;
}

.note-date {
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
}

.note-content {
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.note-author {
    font-size: 12px !important;
    color: #666 !important;
    text-align: right !important;
    font-style: italic !important;
}

/* Notes Info Message */
.notes-info {
    margin-top: 15px !important;
    padding: 10px 15px !important;
    background: #e3f2fd !important;
    border: 1px solid #bbdefb !important;
    border-radius: 6px !important;
    color: #1565c0 !important;
    font-size: 13px !important;
}

.notes-info i {
    margin-right: 6px !important;
    color: #1976d2 !important;
}

/* Callback Date/Time Display */
.lead-callback-info {
    text-align: center;
    margin-top: 5px;
    width: 100%;
}

.lead-callback-datetime {
    color: #ff6b35;
    font-size: 12px;
    font-weight: 500;
    display: block;
    text-align: center;
}

.lead-callback-datetime i {
    margin-right: 4px;
}

/* Status info styling to ensure proper layout */
.lead-status-info {
    text-align: center;
    margin: 5px 0;
    width: 100%;
}

.lead-status-datetime {
    display: block;
    text-align: center;
    font-size: 12px;
}

/* Ensure appointment info is also centered */
.lead-appointment-info {
    text-align: center;
    margin: 5px 0;
    width: 100%;
}

.lead-appointment-datetime {
    display: block;
    text-align: center;
    font-size: 12px;
}

/* Ensure closed won info is also centered */
.lead-closed-won-info {
    text-align: center;
    margin: 5px 0;
    width: 100%;
}

.lead-closed-won-datetime {
    display: block;
    text-align: center;
    font-size: 12px;
}

/* Ensure all status-related information is centered */
.lead-card .lead-status-info,
.lead-card .lead-appointment-info,
.lead-card .lead-callback-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Script Management Page Styles */
.script-upload-container {
    margin-bottom: 30px !important;
}

.script-management-section {
    background: white !important;
    border-radius: 8px !important;
    padding: 25px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.script-management-section h3 {
    margin-bottom: 20px !important;
    color: #333 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.script-management-section h3 i {
    margin-right: 10px !important;
    color: #007bff !important;
}

.script-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.script-item {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
}

.script-item:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1) !important;
}

.script-info h4 {
    margin-bottom: 8px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.script-info p {
    margin-bottom: 15px !important;
    color: #666 !important;
    font-size: 14px !important;
}

.script-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.script-actions .btn {
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.script-actions .btn-secondary {
    background: #6c757d !important;
    border: 1px solid #6c757d !important;
    color: white !important;
}

.script-actions .btn-secondary:hover {
    background: #545b62 !important;
    border-color: #545b62 !important;
}

.script-actions .btn-danger {
    background: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    color: white !important;
}

.script-actions .btn-danger:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
}

/* Script Toggle Styles */
.script-toggle-container {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.script-toggle-container:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
}

.script-toggle-container .toggle-label {
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-grow: 1 !important;
}

.script-toggle-container .script-access-toggle {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.script-toggle-container .toggle-text {
    user-select: none !important;
    color: #495057 !important;
    font-size: 14px !important;
}

.script-toggle-container input[type="checkbox"]:checked + .toggle-text {
    color: #28a745 !important;
    font-weight: 600 !important;
}

.script-toggle-container input[type="checkbox"]:checked {
    accent-color: #28a745 !important;
}

/* Notification Styles */
.notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 15px 20px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 300px !important;
    max-width: 500px !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    transition: all 0.3s ease !important;
}

.notification.show {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.notification-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.notification-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.notification-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

.notification-close {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    margin-left: 15px !important;
    opacity: 0.7 !important;
    color: inherit !important;
}

.notification-close:hover {
    opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px !important;
    }
    
    .script-display-modal .modal-content {
        width: 98% !important;
        max-height: 95vh !important;
        padding: 15px !important;
    }
    
    .script-selection-modal .modal-content {
        max-width: 95% !important;
        padding: 15px !important;
    }
    
    .script-content {
        padding: 15px !important;
    }
    
    .script-notes-section {
        padding: 15px !important;
    }
    
    .notes-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .notes-actions .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .script-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .script-actions .btn {
        width: 100% !important;
        margin-bottom: 5px !important;
    }
    
    .script-toggle-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .notification {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        min-width: auto !important;
    }
}

@media (max-width: 480px) {
    .script-display-modal .modal-content,
    .script-selection-modal .modal-content {
        padding: 10px !important;
    }
    
    .script-content,
    .script-notes-section {
        padding: 10px !important;
    }
    
    .script-text p {
        font-size: 14px !important;
    }
    
    .script-option-btn {
        padding: 12px !important;
        font-size: 14px !important;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Apply animations */
.script-selection-modal.show .modal-content,
.script-display-modal.show .modal-content {
    animation: fadeIn 0.3s ease !important;
}

.notification.show {
    animation: slideIn 0.3s ease !important;
}

/* Callback scheduler form styling */
.popup .form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.popup .form-actions .btn-primary,
.popup .form-actions .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.popup .form-actions .btn-primary {
    background: #007bff;
    color: white;
}

.popup .form-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.popup .form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.popup .form-actions .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Callback scheduler form styling */
.callback-scheduler-form {
    max-width: 500px;
    margin: 0 auto;
}

.callback-scheduler-form .form-group {
    margin-bottom: 20px;
}

.callback-scheduler-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.callback-scheduler-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.callback-scheduler-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.callback-scheduler-form .notes-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.callback-scheduler-form .notes-container .note {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.callback-scheduler-form .notes-container .note:last-child {
    margin-bottom: 0;
}

.callback-scheduler-form .notes-container .no-notes {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.callback-scheduler-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.callback-scheduler-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.callback-scheduler-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.callback-scheduler-form .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.callback-scheduler-form .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Badge color variations */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff3860;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Multiple badge positioning - Top positions */
.notification-badge.badge-left {
    left: -8px;
    right: auto;
}

.notification-badge.badge-right {
    right: -8px;
    left: auto;
}

/* Multiple badge positioning - Bottom positions */
.notification-badge.badge-bottom-left {
    left: -8px;
    right: auto;
    top: auto;
    bottom: -8px;
}

.notification-badge.badge-bottom-right {
    right: -8px;
    left: auto;
    top: auto;
    bottom: -8px;
}

/* Ensure buttons can handle multiple badges */
#dashboardMenu button {
    position: relative;
}

/* Blue badge for newly assigned leads */
.notification-badge.badge-blue {
    background-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.notification-badge.badge-blue.pulse {
    animation: pulse-animation-blue 1.5s infinite;
}

@keyframes pulse-animation-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Grey badge for on hold callbacks */
.notification-badge.badge-grey {
    background-color: #6c757d;
    box-shadow: 0 2px 5px rgba(108, 117, 125, 0.3);
}

.notification-badge.badge-grey.pulse {
    animation: pulse-animation-grey 1.5s infinite;
}

@keyframes pulse-animation-grey {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 117, 125, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 117, 125, 0);
    }
}

/* Purple badge for contacted callbacks */
.notification-badge.badge-purple {
    background-color: #6f42c1;
    box-shadow: 0 2px 5px rgba(111, 66, 193, 0.3);
}

.notification-badge.badge-purple.pulse {
    animation: pulse-animation-purple 1.5s infinite;
}

@keyframes pulse-animation-purple {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(111, 66, 193, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0);
    }
}

/* Green badge for appointments */
.notification-badge.badge-green {
    background-color: #28a745;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.notification-badge.badge-green.pulse {
    animation: pulse-animation-green 1.5s infinite;
}

@keyframes pulse-animation-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ========================================
   CALENDAR VIEW STYLES FOR MY LEADS
   ======================================== */

.leads-calendar-view {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.calendar-header p {
    color: #6c757d;
    margin: 0;
}

.no-callbacks-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-callbacks-message i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-callbacks-message h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-callbacks-message p {
    color: #6c757d;
    font-size: 1.1rem;
}

.callback-calendar-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-months {
    display: grid;
    gap: 30px;
}

.calendar-month {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.month-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    position: relative;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.calendar-day.empty {
    background: #f8f9fa;
    min-height: 60px;
}

.calendar-day.today {
    background: #e3f2fd;
    border-color: #2196f3;
}

.calendar-day.has-callbacks {
    background: #fff3e0;
    border-color: #ff9800;
}

.calendar-day.today.has-callbacks {
    background: #e8f5e8;
    border-color: #4caf50;
}

.day-number {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.calendar-day.today .day-number {
    color: #2196f3;
    font-weight: 700;
}

.day-callbacks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 90px;
    overflow-y: auto;
}

.mini-callback-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    position: relative;
}

.mini-callback-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.mini-callback-card.on-hold {
    border-left: 3px solid #6c757d;
    background: #f8f9fa;
}

.mini-callback-card.contacted {
    border-left: 3px solid #6f42c1;
    background: #f8f4ff;
}

.mini-callback-time {
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}

.mini-callback-name {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-callback-status {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 2px;
}

.mini-callback-card.on-hold .mini-callback-status {
    background: #6c757d;
    color: white;
}

.mini-callback-card.contacted .mini-callback-status {
    background: #6f42c1;
    color: white;
}

.mini-callback-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.mini-callback-datetime {
    font-size: 0.65rem;
    color: #6c757d;
    display: none; /* Hidden by default, shown on hover */
}

.mini-callback-reschedule {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.mini-callback-reschedule:hover {
    background: #e9ecef;
    color: #495057;
}

.mini-callback-card:hover .mini-callback-datetime {
    display: block;
}

/* Responsive design for calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-callbacks {
        max-height: 60px;
    }
    
    .mini-callback-card {
        padding: 4px;
        font-size: 0.7rem;
    }
    
    .calendar-months {
        gap: 20px;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-header h3 {
        font-size: 1.3rem;
    }
}

/* ========================================
   CALLBACK INFO STYLES FOR LIST & STATUS VIEWS
   ======================================== */

/* Callback info styles for List and Status views */
.callback-info, .callback-tag {
    font-size: 0.85em;
    color: #6c5ce7;
    margin-top: 4px;
    padding: 2px 6px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 3px;
    border-left: 3px solid #6c5ce7;
    display: inline-block;
}

.callback-info i, .callback-tag i {
    margin-right: 4px;
    color: #6c5ce7;
}

/* Different colors for On Hold vs Contacted callbacks */
.lead-list-row.status-on-hold .callback-info,
.status-lead-card.status-status-on-hold .callback-tag {
    color: #636e72;
    background: rgba(99, 110, 114, 0.1);
    border-left-color: #636e72;
}

.lead-list-row.status-on-hold .callback-info i,
.status-lead-card.status-status-on-hold .callback-tag i {
    color: #636e72;
}

/* Ensure callback info displays properly in status view */
.status-lead-header .callback-tag {
    margin-top: 6px;
    font-size: 0.8em;
}

/* List view specific callback info styling */
.lead-status-cell .callback-info {
    display: block;
    margin-top: 6px;
    font-size: 0.8em;
} 