/* Lead Management System - Custom Styles */

/* ==========================================================================
   1. CSS Reset
   ========================================================================== */

/* Normalize is a modern, HTML5-ready alternative to CSS resets. You might
    consider including a full Normalize.css for more robust cross-browser
    consistency.  For simplicity, this is a minimal reset. */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

body {
    margin: 0;
}

*,
*:before,
*:after {
    box-sizing: border-box; /* Inherit box-sizing to make it easier to manage */
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */

:root {
    /* Define color variables for consistency */
    --primary-color: #007cba;
    --primary-color-dark: #005c8e;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --text-color-light: #666;
    --border-color: #ccc;
    --border-color-light: #ddd;
    --box-shadow-color: rgba(0, 0, 0, 0.15);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern, clean font */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f8f8; /* Light background for the whole page */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. Layout Styles
   ========================================================================== */

.lms-dashboard {
    padding: 20px;
}

/* Header */
.lms-header {
    align-items: center;
    background-color: #f9f9f9; /* Example header background */
    color: white;
    position: fixed; /* Fixed position at the top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000; /* High z-index to ensure it stays on top */
    box-shadow: 0 2px 5px var(--box-shadow-color);
    border-bottom: 1px solid var(--border-color-light);
}

.lms-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.lms-header-left,
.lms-header-center,
.lms-header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.lms-header-center {
    justify-content: center;
}

.lms-header-right {
    justify-content: flex-end;
}

/* Lead List */
.lms-leads-list {
    margin-top: 20px;
}

.lead-card {
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Leads Grid */
.lms-leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 190px; /* Adjusted to accommodate fixed header */
}

.lms-lead-card {
    padding: 15px;
    border-radius: 15px 15px 10px 10px;
    box-shadow: 0 4px 8px var(--box-shadow-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid var(--lms-border-color, #ccc);
    border-top: 10px solid var(--lms-border-color, #ccc);

}

.lms-card-section.lead-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 5px;
    padding-bottom: 0;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 15px;
}

.lms-card-section.lead-details span {
    display: block;
    margin: 0;
    padding: 2px 5px;
    overflow-wrap: break-word;
}

.lms-card-section.lead-details .lms-name {
    grid-column: 1 / 3;
    grid-row: 1;
    text-align: left;
    font-weight: 900;
    color: #000;
}

.lms-card-section.lead-details .lms-priority {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-weight: 500;
    color: #888;
    border-left: 1px dashed var(--border-color);
}

.lms-card-section.lead-details .lms-status {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-weight: 500;
    color: #888;
    border-top: 1px dashed var(--border-color);
}

.lms-card-section.lead-details .lms-city {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    font-weight: 500;
    color: #888;
    border-top: 1px dashed var(--border-color);
    border-left: 1px dashed var(--border-color);
}

.lms-card-section.reminder-section {
    padding: 10px;
    border: 2px dashed;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    background-color: white;
    font-weight: bold;
    color: var(--text-color-light);
    display: block;
    width: 100%;
}

.lms-card-section.reminder-section .lms-reminder-text {
    display: block;
}

/* Clear Reminder Button */
#lms-clear-reminder-btn {
  background-color: #f0ad4e; /* Orange-ish warning color */
  color: white;
}



.lms-card-actions {
    display: flex;
    gap: 5px;
}

.lms-action-button {
    padding: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    /* Remove or comment out the fixed width calculation */
    /* width: calc((100% - (3 * 5px)) / 4); */
    flex-grow: 1; /* Allow buttons to grow and fill available space */
    flex-shrink: 1; /* Allow buttons to shrink if necessary */
    flex-basis: 0; /* Distribute space based on content, then grow */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid; /* Remove the specific color here */
    border-radius: 8px;
    background-color: white;
}

.lms-action-button a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit; /* Inherit color from parent */
}


/* Floating Action Button (Add Lead) */
.lms-add-button,
.lms-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 30px;
    text-align: center;
    line-height: 56px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    border: none; /* Reset border */
    padding: 0;   /* Reset padding */
}

.lms-add-button:hover,
.lms-floating-btn:hover {
    background-color: #0073aa;
}

/* FAB Options (if you have them) */
.lms-fab-options {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px;
    z-index: 9999;
}

.lms-fab-options button {
    display: block;
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 180px;
    text-align: left;
}

.lms-fab-options button:hover {
    background: #e0e0e0;
}




/* Consistent Modal Styles */



.lms-modal-header { /* General modal header style (may be overridden) */
    display: flex;
    justify-content: flex-end;
}

.lms-modal-close { /* General modal close button style */
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    color: #999;
}

.lms-modal-close:hover {
    color: #333;
}

/* Style for the Filter Modal */
.lms-filter-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px; /* Specific width for the filter modal */
    max-width: 90vw;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
    transform: translate(-50%, -50%);
    z-index: 10500; /* Higher z-index for the modal */
}

.lms-filter-modal.active {
    display: block;
}


/* Make the filter form scrollable */
.lms-filter-modal form {
    display: flex;
    flex-direction: column;
    max-height: 300px; /* Adjust this value as needed */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px;/* Add some padding to prevent scrollbar from overlapping content */
}

/* Style the scrollbar (optional, for better cross-browser consistency) */
.lms-filter-modal form::-webkit-scrollbar {
    width: 8px;
}

.lms-filter-modal form::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 4px;
}

.lms-filter-modal form::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.lms-filter-modal form::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
}

.lms-filter-modal label {
    font-weight: bold;
    margin-bottom: 4px;
}

.lms-filter-modal select,
.lms-filter-modal input[type="text"],
.lms-filter-modal input[type="date"] { /* Added input[type="date"] */
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    margin-bottom: 20px;
}



/* Filter Buttons */
.lms-filter-buttons {
    display: flex;
    margin-top: 1.5rem;
}

/* General Button Styles */
.lms-btn {
    width: 50%;
    padding: 10px 0; /* Adjusted padding */
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.apply-btn {
    background-color: #3b82f6; /* blue */
    color: white;
}

.apply-btn:hover {
    background-color: #2563eb; /* Darker blue on hover */
}

.reset-btn {
    background-color: #e5e7eb; /* light gray */
    color: #111827;
    margin-left: 1rem;
}

.reset-btn:hover {
    background-color: #d1d5db;/* Darker gray on hover */
    color: black;
}





/* Pagination */
.lms-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 35px;
    padding: 10px 40px 30px 40px;
    border-radius: 5px;
}

.lms-page-arrow,
.lms-page {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 14px;
}

/* Active page styling - make it more specific */
.lms-pagination .lms-page.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lms-page.first,
.lms-page.last {
    /* Optional: Style for first and last pages if needed */
}

.lms-ellipsis {
    margin: 0 10px;
    font-size: 1.2em;
    color: var(--text-color-light);
}

.lms-page-arrow.left {
    margin-right: auto;
}

.lms-page-arrow.right {
    margin-left: auto;
}

.lms-page-arrow:hover,
.lms-page:not(.active):hover {
    /* Apply hover style only if not active */
    background-color: #eee;
    border-color: #bbb;
    color: black;
}

/* New style for disabled arrows */
.lms-page-arrow.disabled {
    opacity: 0.6;
    /* Reduce opacity to gray out */
    cursor: default;
    /* Change cursor to indicate disabled */
    background-color: #f0f0f0;
    /* Lighter background */
    color: var(--text-color-light);
    /* Lighter text color */
    border-color: var(--border-color-light);
}

.lms-page-arrow.disabled:hover {
    background-color: #f0f0f0;
    border-color: var(--border-color-light);
    color: var(--text-color-light);
}





/* Add Reminder Modal (Should be above the overlay) */
#lms-reminder-modal {
    display: none;
    position: fixed;
    top: 50%; /* Vertically center */
    left: 50%; /* Horizontally center */
    transform: translate(-50%, -50%); /* Adjust for the modal's size */
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    z-index: 10500; /* Higher z-index for the modal */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    width: 320px;
    max-width: 90vw;
    overflow-y: auto;
    border-radius: 8px;
}

#lms-reminder-modal.active {
    display: block;
}

#lms-reminder-modal .lms-modal-body {
    padding-top: 15px;
}

#lms-reminder-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#lms-reminder-modal input[type="date"],
#lms-reminder-modal input[type="time"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}




/* Responsive Adjustments */
@media (max-width: 768px) {
    .lms-leads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lms-leads-grid {
        grid-template-columns: 1fr;
    }
}

/* Icon Button Styles */
.lms-icon-btn {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.lms-icon-btn:hover {
    background-color: #e0e0e0;
    border-color: #b3b3b3;
}



/* Modified Filter Modal Header */
.lms-filter-modal-header {
    display: flex;
    justify-content: center; /* Center the heading */
    align-items: center;
    background-color: var(--primary-color); /* Blue background */
    color: white; /* White text */
    padding: 15px 0; /* Adjust padding as needed */
    margin-bottom: 15px; /* Keep some space below the header */
    border-radius: 8px 8px 0 0; /* Round top corners */
}

.lms-filter-modal-header h2 { /* Target the heading element */
    margin: 0; /* Remove default heading margin */
    font-size: 1.5em; /* Adjust font size as needed */
    font-weight: bold;
    color: white;
}

/* Hide the original close button */
.lms-filter-modal-close {
    display: none;
}

/* Modified Filter Buttons Section */
.lms-filter-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    margin-top: 1.5rem;
}

.lms-btn {
    width: 100%; /* Make all buttons full width */
    padding: 10px 0; /* Adjust vertical padding */
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block; /* Make them block-level elements */
    white-space: nowrap;
    margin-bottom: 8px; /* Add spacing between buttons */
}

.reset-btn {
    background-color: #e5e7eb; /* light gray */
    color: #111827;
    margin-left: 0; /* Remove left margin */
}

.apply-btn {
    background-color: #3b82f6; /* blue */
    color: white;
}

/* Style for the new Cancel button */
.cancel-btn {
    background-color: #f44336; /* Red color for cancel */
    color: white;
}

.cancel-btn:hover {
    background-color: #d32f2f; /* Darker red on hover */
}




.lms-search-wrapper {
    position: relative;
    width: 95%;
    font-family: 'Poppins', sans-serif;
    margin: 0 auto; /* center align horizontally */
    max-width: 1200px;
    padding: 10px 20px;
    
    
}

.lms-search-form {
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #888;

}

.lms-search-form input[type="search"] {
    color: #0a0a0a;
    font-weight: bold;
    background: transparent;
    box-shadow: none;
}

.lms-search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none !important;
    outline: none;
    color: #0033A0;
}

.lms-search-input::placeholder {
    color: #888;
    font-weight: normal;
}

.lms-search-button {
    color: #888;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
}


.lms-search-button svg {
    width: 20px;
    height: 20px;
    fill: #888;
}

@media (max-width: 576px) {
    .lms-search-wrapper {
        max-width: 100%;
    }
}





/* Style specifically for the Add Lead Modal header */

#lms-add-lead-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px; /* Match filter modal width */
    max-width: 90vw; /* Responsive width */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
    transform: translate(-50%, -50%);
    z-index: 10500;
}


#lms-add-lead-modal .lms-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
}

#lms-add-lead-modal .lms-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

#lms-add-lead-modal label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}




#lms-add-lead-modal textarea {
    min-height: 60px; /* Reduced the minimum height */
}

#lms-add-lead-modal .lms-filter-buttons {
    /* Reusing filter button styles */
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

#lms-add-lead-modal .lms-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    margin-bottom: 8px;
}

#lms-add-lead-modal .apply-btn {
    background-color: #3b82f6;
    color: white;
}

#lms-add-lead-modal .cancel-btn {
    background-color: #f44336;
    color: white;
}

#lms-add-lead-modal .cancel-btn:hover {
    background-color: #d32f2f;
}




.lms-filter-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
    z-index: 10400; /* Below the modal but above other content */
}

.lms-filter-modal-overlay.active {
    display: block; /* Show the overlay when active */
}



/* Consolidated Overlay Styles */
.lms-filter-modal-overlay,
#lms-reminder-modal-overlay,
#lms-add-manual-overlay { /* Added #lms-add-manual-overlay */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10400; /* Below modal */
}

.lms-filter-modal-overlay.active,
#lms-reminder-modal-overlay.active,
#lms-add-manual-overlay.active { /* Added #lms-add-manual-overlay */
    display: block;
}




/* Styles for the Import Excel Modal */
#lms-import-excel-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px;
    max-width: 90vw;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
    transform: translate(-50%, -50%);
    z-index: 10500;
}

#lms-import-excel-modal .lms-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
}

#lms-import-excel-modal .lms-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

#lms-import-excel-modal label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    margin-top: 25px;
}

#lms-import-excel-modal input[type="file"] {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    margin-bottom: 10px;
    padding: 8px;
}

#lms-import-excel-modal .lms-download-sample {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--primary-color); /* Keep primary color but no background */
  text-decoration: none; /* Show it's clickable */
  background-color: transparent;
  border: none;
  padding: 0;
}

#lms-import-excel-modal .lms-download-sample:hover {
  text-decoration: none; /* Remove underline on hover */
  color: var(--primary-color-dark);
}


#lms-import-excel-modal .lms-filter-buttons {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

#lms-import-excel-modal .lms-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    margin-bottom: 8px;
}

#lms-import-excel-modal .apply-btn {
    background-color: #3b82f6;
    color: white;
}

#lms-import-excel-modal .cancel-btn {
    background-color: #f44336;
    color: white;
}

#lms-import-excel-modal .cancel-btn:hover {
    background-color: #d32f2f;
}

#lms-import-status {
  text-align: center; /* Center-align the text */
  font-weight: bold;  /* Already bold, but keeps it consistent */
  margin-top: 10px;
}




/* ==========================================================================
   X. Modals (General) - Ensure these base styles are present
   ========================================================================== */

.lms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1000;
    display: none; /* Hidden by default */
}

.lms-modal-overlay.active {
    display: block;
}

.lms-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px; /* Match filter modal width */
    max-width: 90vw; /* Responsive width */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
    transform: translate(-50%, -50%);
    z-index: 10500;
}

.lms-modal.active {
    display: block;
}

.lms-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
}

.lms-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}


.lms-modal-content label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.lms-modal-content input[type="date"],
.lms-modal-content input[type="time"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.lms-modal-content #lms-reminder-message {
    margin-top: 10px;
    font-size: 0.9em;
}

.lms-modal-buttons {
    width: 100%;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    margin-top: 1.1rem;
}



/* Style for apply button (you might already have this) */
.lms-btn.apply-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.lms-btn.apply-btn:hover {
    background-color: var(--primary-color-dark);
}

/* Style for cancel button (you might already have this) */
.lms-btn.cancel-btn {
    background-color: #f44336; /* Example red color */
    color: #fff;
}

.lms-btn.cancel-btn:hover {
    background-color: #d32f2f;
}




#lms-reminder-modal .lms-modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

#lms-reminder-modal .lms-modal-header h2 {
    margin: 0; /* Only top margin */
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-align: center;
}

#lms-reminder-modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    padding-top: 10px; /* Add padding */
}

#lms-reminder-modal .lms-modal-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 0 8px 8px;
    background-color: transparent;
    cursor: default; /* Changed from pointer to default */
}

#lms-reminder-modal .lms-modal-buttons:focus,
#lms-reminder-modal .lms-modal-buttons:active {
    outline: none;
    box-shadow: none;
}

#lms-reminder-modal .lms-modal-buttons .lms-btn {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
    display: block;
    border: none;
    border-radius: 4px;
    cursor: pointer; /* Keep cursor pointer on the actual buttons */
}

#lms-reminder-modal .lms-modal-buttons .lms-btn.apply-btn {
    background-color: #3b82f6;
    color: white;
}

#lms-reminder-modal .lms-modal-buttons .lms-btn.cancel-btn {
    background-color: #f44336;
    color: white;
}

#lms-reminder-modal .lms-modal-buttons .lms-btn:hover {
    opacity: 0.9;
}

#lms-reminder-modal .lms-modal-buttons .lms-btn:active {
    opacity: 0.8;
}







/* Style specifically for the Add Lead Modal header */

/* Combined styling for both Add Lead and Lead Details Modals */
#lms-add-lead-modal,
#lms-lead-details-modal { /* ADDED THIS LINE */
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px; /* Match filter modal width */
    max-width: 90vw; /* Responsive width */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 8px;
    transform: translate(-50%, -50%);
    z-index: 10500;
}

#lms-add-lead-modal form,
#lms-lead-details-modal form { /* ADDED THIS LINE */
    display: flex;
    flex-direction: column;
    max-height: 300px; /* Match filter modal scroll height */
    overflow-y: auto; /* Enable scrolling within the form */
    padding-right: 10px; /* scrollbar spacing */
}

/* Style the scrollbar (optional, for better cross-browser consistency) */
#lms-add-lead-modal form::-webkit-scrollbar,
#lms-lead-details-modal form::-webkit-scrollbar { /* ADDED THIS LINE */
    width: 8px;
}

#lms-add-lead-modal form::-webkit-scrollbar-track,
#lms-lead-details-modal form::-webkit-scrollbar-track { /* ADDED THIS LINE */
    background-color: #f1f1f1;
    border-radius: 4px;
}

#lms-add-lead-modal form::-webkit-scrollbar-thumb,
#lms-lead-details-modal form::-webkit-scrollbar-thumb { /* ADDED THIS LINE */
    background-color: #ccc;
    border-radius: 4px;
}

#lms-add-lead-modal form::-webkit-scrollbar-thumb:hover,
#lms-lead-details-modal form::-webkit-scrollbar-thumb:hover { /* ADDED THIS LINE */
    background-color: #bbb;
}

#lms-add-lead-modal .lms-modal-header,
#lms-lead-details-modal .lms-modal-header { /* ADDED THIS LINE */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 15px;
    border-radius: 8px 8px 0 0;
}

#lms-add-lead-modal .lms-modal-header h2,
#lms-lead-details-modal .lms-modal-header h2 { /* ADDED THIS LINE */
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

#lms-add-lead-modal label,
#lms-lead-details-modal label { /* ADDED THIS LINE */
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}



/* Style for datetime-local input in modal */

#lms-add-lead-modal .lms-datetime-field {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px 10px; /* Added padding for better appearance */
}

#lms-add-lead-modal input[type="tel"],
#lms-add-lead-modal select,
#lms-add-lead-modal input[type="text"],
#lms-add-lead-modal input[type="email"],
#lms-add-lead-modal textarea,
#lms-lead-details-modal select, /* ADDED THIS LINE */
#lms-lead-details-modal input[type="text"], /* ADDED THIS LINE */
#lms-lead-details-modal input[type="email"], /* ADDED THIS LINE */
#lms-lead-details-modal input[type="tel"],
#lms-lead-details-modal textarea, /* ADDED THIS LINE */
#lms-lead-details-modal input[type="color"] { /* ADDED THIS LINE FOR COLOR INPUT */
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px 10px; /* Added padding for better appearance */
}


#lms-add-lead-modal textarea,
#lms-lead-details-modal textarea { /* ADDED THIS LINE */
    min-height: 60px; /* Reduced the minimum height */
}

#lms-add-lead-modal .lms-filter-buttons,
#lms-lead-details-modal .lms-filter-buttons { /* ADDED THIS LINE */
    /* Reusing filter button styles */
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

#lms-add-lead-modal .lms-btn,
#lms-lead-details-modal .lms-btn { /* ADDED THIS LINE */
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    margin-bottom: 8px;
}

/* Specific styles for the update modal's "Update" button, if it has a different class */
#lms-lead-details-modal .update-btn { /* Assuming you use a class like 'update-btn' */
    background-color: #28a745; /* Green for update */
    color: white;
}

#lms-lead-details-modal .update-btn:hover {
    background-color: #218838;
}

#lms-add-lead-modal .apply-btn {
    background-color: #3b82f6;
    color: white;
}

#lms-add-lead-modal .cancel-btn,
#lms-lead-details-modal .cancel-btn { /* ADDED THIS LINE */
    background-color: #f44336;
    color: white;
}

#lms-add-lead-modal .cancel-btn:hover,
#lms-lead-details-modal .cancel-btn:hover { /* ADDED THIS LINE */
    background-color: #d32f2f;
}

/* Overlay style (Make sure you have this for both overlays) */
#lms-add-manual-overlay.active,
#lms-import-excel-overlay.active,
#lms-filter-modal-overlay.active,
#lms-reminder-modal-overlay.active,
#lms-lead-details-overlay.active { /* ADDED THIS LINE for the new overlay */
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
}


#lms-delete-lead-btn {
    background-color: #dc3545; /* A common red for danger/delete actions */
    color: white; /* White text for contrast */
    border: 1px solid #dc3545;
    padding: 8px 15px; /* Adjust padding for desired size */
    border-radius: 4px; /* Slightly rounded corners */
    cursor: pointer; /* Indicates it's clickable */
    font-size: 14px; /* Adjust font size */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    display: inline-flex; /* Helps with icon alignment if you add one */
    align-items: center;
    justify-content: center;
}

#lms-delete-lead-btn:hover {
    background-color: #c82333; /* Darker red on hover */
    border-color: #bd2130;
}

#lms-delete-lead-btn:active {
    background-color: #b01a2c; /* Even darker on click */
    border-color: #a5172a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); /* Inset shadow on click */
}

/* Style for when the button is disabled (e.g., during AJAX call) */
#lms-delete-lead-btn:disabled {
    color: #a0a0a0; /* Greyer text */
    border-color: #d0d0d0;
    cursor: not-allowed; /* Shows a "no-go" cursor */
    box-shadow: none;
}



/* Styles for the "Lead Added by" Box */
.lms-created-by-box {
    width: 100%;
    margin: 0 auto 15px auto;
    padding: 12px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    text-align: center;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: normal; /* CHANGE THIS: Set default font-weight to normal */
    text-transform: uppercase; /* Make all text inside uppercase */
}

/* Styles for the label "Lead Added by:" */
.lms-created-by-box .lms-created-by-label {
    font-weight: bold; /* Make the label bold */
}

/* Styles for the value (username) */
.lms-created-by-box .lms-created-by-value {
    font-weight: normal; /* Ensure the value is not bold (it will inherit 'normal' from parent anyway) */
    margin-left: 5px; /* Add some space if you want between label and value */
}



/* Styles for "Lead Added by" in the details popup */
.lms-lead-added-by-display {
    padding: 8px 10px;
    margin-bottom: 15px;
    background-color: #f8f8f8; /* Light background */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}


#lead_source_display[readonly] {
    padding: 8px 10px;
    margin-bottom: 15px;
    background-color: #f8f8f8; /* Light background */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}






/* =========================================================================
   Custom Login Page Styles (NEW)
   ========================================================================== */

body.lms-custom-login-page {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.lms-login-container {
    background: #fff;
    padding: 80px 40px 0 40px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    height: 100vh;
    


}
.lms-login-container h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}
.lms-login-container .lms-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    align-self: center;
}

.lms-login-form {
    margin-top: 40px;
}

.lms-login-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    color: black;
}
.lms-login-form input[type="text"],
.lms-login-form input[type="password"] {
    padding: 12px 10px;
    margin-bottom: 20px; /* Adjusted margin-bottom for better spacing with password wrapper */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.lms-login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #0073aa; /* WordPress primary blue */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.lms-login-form input[type="submit"]:hover {
    background-color: #005f8b;
}
.lms-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}
.lms-remember-me label {
    display: inline-block;
    margin-left: 5px;
    font-weight: normal;
}
.lms-forgot-password a {
    color: #0073aa;
    text-decoration: none;
}
.lms-forgot-password a:hover {
    text-decoration: underline;
}
.lms-login-errors {
    color: #dc3232; /* WordPress error red */
    margin-bottom: 15px;
    text-align: left;
    font-size: 14px;
}

/* Password visibility toggle styles */
.lms-password-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.lms-password-wrapper input[type="password"],
.lms-password-wrapper input[type="text"] {
    margin-bottom: 0;
}
.lms-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #888; /* Default color for the icon */
    /* Add these rules to prevent color change on interaction */
    -webkit-appearance: none; /* Prevents some default browser button styles */
    -moz-appearance: none;
    appearance: none;
}

/* Ensure color doesn't change on hover, focus, or active states */
.lms-toggle-password:hover,
.lms-toggle-password:focus,
.lms-toggle-password:active {
    color: #888; /* Keep the same gray color */
    background: transparent; /* Ensure no background color appears */
    outline: none; /* Remove the focus outline for a cleaner look */
    box-shadow: none; /* Remove any potential box-shadow */
}

.lms-toggle-password svg {
    width: 20px;
    height: 20px;
    display: block; /* Ensures SVG takes its own space and helps with vertical alignment */
}



/* ========================================
   MODERN PUBLIC LEAD FORM STYLES
======================================== */

.lms-lead-form-wrapper {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px 25px;
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Logo at top */
.lms-lead-form-wrapper .lms-lead-logo img {
  max-width: 150px;
  margin-bottom: 50px;
  height: 150px !important;
}


/* Error Message */
.lms-lead-form-wrapper .lms-lead-error {
  color: #dc3545;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}


/* Input Fields */
.lms-lead-form-wrapper form p {
  margin-bottom: 20px;
  text-align: left;
}

/* Labels bold and spaced */
.lms-lead-form-wrapper form label {
  font-weight: bold;
  display: block;
  color: #444;
}

/* Input + Textarea styles */
.lms-lead-form-wrapper form input[type="text"],
.lms-lead-form-wrapper form input[type="email"],
.lms-lead-form-wrapper form input[type="tel"],
.lms-lead-form-wrapper form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: left;
  transition: border-color 0.3s ease;
  margin-top: 0;
}

/* Focus styles */
.lms-lead-form-wrapper form input:focus,
.lms-lead-form-wrapper form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Submit Button */
.lms-lead-form-wrapper form button[type="submit"] {
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.lms-lead-form-wrapper form button[type="submit"]:hover {
  background-color: #005a87;
}










/* Thank You page styling */
.lms-thank-you-wrapper {
  background: #fff;
  padding: 40px;
  max-width: 100%;
  text-align: center;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lms-thank-you-wrapper h2 {
  color: #0073aa;
  margin-bottom: 15px;
}

.lms-thank-you-wrapper p {
  color: #444;
  font-size: 16px;
  margin-bottom: 20px;
}




/* --- Reminder Popup Modal --- */
#lms-reminder-popup-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 320px;
  max-width: 90vw;
  background: white;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  z-index: 10500; /* Above header */
}

#lms-reminder-popup-modal.active {
  display: block;
}

#lms-reminder-popup-modal .lms-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color, #007cba);
  color: white;
  padding: 15px 0;
  margin-bottom: 15px;
  border-radius: 8px 8px 0 0;
}

#lms-reminder-popup-modal .lms-modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

#lms-reminder-popup-modal .lms-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

#lms-reminder-popup-modal .lms-modal-content::-webkit-scrollbar {
  width: 8px;
}

#lms-reminder-popup-modal .lms-modal-content::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 4px;
}

#lms-reminder-popup-modal .lms-modal-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#lms-reminder-popup-modal .lms-modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}

#lms-reminder-popup-modal .lms-modal-content label {
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
  margin-top: 10px; /* Add some spacing above labels */
}

#lms-reminder-popup-modal .lms-modal-content input[readonly],
#lms-reminder-popup-modal .lms-modal-content textarea[readonly] {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-bottom: 15px;
  padding: 8px 10px;
  background-color: #f8f8f8;
  color: #333;
  cursor: default;
}

#lms-reminder-popup-modal .lms-modal-content textarea {
  min-height: 80px;
}

#lms-reminder-popup-modal #reminder_lead_notes {
  min-height: 130px;
}

#lms-reminder-popup-modal .lms-filter-buttons {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

#lms-reminder-popup-modal .lms-btn {
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  white-space: nowrap;
  margin-bottom: 8px;
}

/* Call and WhatsApp buttons */
#lms-reminder-popup-modal #lms-reminder-call-btn {
  background-color: #3b82f6;
  color: white;
}


#lms-reminder-popup-modal #lms-reminder-whatsapp-btn {
    
  background-color: #25D366;
  color: white;
}

#lms-reminder-popup-modal #lms-reminder-call-btn:hover {
  background-color: #2f6bd3;
}


#lms-reminder-popup-modal #lms-reminder-whatsapp-btn:hover {
    background-color: #0eab48;
}

/* Dismiss button */
#lms-reminder-popup-modal #lms-reminder-dismiss-btn {
  background-color: #f44336;
  color: white;
}

#lms-reminder-popup-modal #lms-reminder-dismiss-btn:hover {
  background-color: #d32f2f;
}

/* Overlay styling */
#lms-reminder-popup-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10499; /* Just below modal */
}

#lms-reminder-popup-modal-overlay.active {
  display: block;
}



