/* Frontend Leads Styles */
.lead-manager-leads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.lead-manager-leads-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4a6cf7;
}

.lead-manager-leads-header h2 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.lead-manager-leads-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #4a6cf7;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.lead-manager-leads-filters {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.lead-manager-leads-filters select {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lead-manager-leads-filters select:hover {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 1px #4a6cf7;
}

/* List layout */
.lead-manager-leads-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.lead-item {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lead-info {
    flex: 2 1 60%;
    padding-right: 30px;
}

.lead-contact {
    flex: 1 1 30%;
    border-left: 1px solid #e1e4e8;
    padding-left: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
}

.lead-contact h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e4e8;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-name i {
    color: #2271b1;
    font-size: 20px;
}

.contact-detail {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-detail i {
    width: 16px;
    text-align: center;
    color: #666;
}

.lead-title-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.lead-title {
    font-size: 20px;
    color: #1d2327;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.lead-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.lead-label {
    background: #f15b29;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 0 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    margin: 0;
    line-height: 38px;
    position: relative;
    top: 5px;
}

.lead-request-btn {
    margin-top: 0;
    white-space: nowrap;
}

.lead-item hr {
    margin: 0 0 25px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.lead-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 25px;
    font-size: 14px;
    padding-top: 5px;
}

.lead-details-list li {
    display: flex;
    align-items: center;
    padding: 6px 0;
    gap: 8px;
    min-height: 30px;
    align-items: flex-start;
}

.lead-details-list li i {
    color: #2271b1;
    width: 20px;
    text-align: left;
    flex-shrink: 0;
}

.detail-label {
    color: #000000; /* Changed to black */
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500; /* Making it slightly bolder for better visibility */
}

.detail-value {
    color: #1d2327;
    font-weight: 600;
    word-break: break-word;
}

.lead-details-list li i {
    margin-right: 10px;
    color: #2271b1;
    width: 18px;
    text-align: center;
}

.lead-contact p i {
    margin-right: 6px;
    color: #666;
}

.lead-request-btn {
    display: inline-block;
    margin-top: 15px;
    background: #2271b1;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.lead-request-btn:hover {
    background: #135e96;
}

.lead-manager-no-leads {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .lead-manager-leads-header {
        flex-direction: column;
    }
    .lead-item {
        flex-direction: column;
    }
    .lead-contact {
        border-left: none;
        border-top: 1px solid #e1e4e8;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 15px;
    }
}

/* ============================================
   LEAD SLIDER STYLES
   ============================================ */
.lead-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

.lead-slider-header {
    text-align: center;
    margin-bottom: 40px;
}

.lead-slider-header h2 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lead-slider-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.lead-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
    overflow: hidden;
}

.lead-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    flex: 1;
    width: 100%;
}

.lead-slider-track > * {
    scroll-snap-align: center;
}

.lead-slider-track::-webkit-scrollbar {
    display: none;
}

.lead-slide {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Date Display with Timeline */
.lead-slide-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.date-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.date-icon i {
    color: #e74c3c;
    font-size: 18px;
}

/* Lead Card */
.lead-slide-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.lead-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.lead-slide-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-slide-title {
    color: #1a5276;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px 0;
    min-height: 50px;
}

/* Details List */
.lead-slide-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.lead-slide-details li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #ecf0f1;
    font-size: 14px;
    line-height: 1.4;
}

.lead-slide-details li i {
    color: #3498db;
    width: 18px;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lead-slide-details .detail-text {
    color: #7f8c8d;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
}

.lead-slide-details .detail-value {
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
    word-break: break-word;
    font-size: 14px;
}

/* Buy Now Button */
.lead-slide-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 25px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.lead-slide-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

/* Navigation Buttons */
.lead-slider-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.lead-slider-nav:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.lead-slider-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Dots Navigation - Hidden by default */
.lead-slider-dots {
    display: none;
}

/* No Leads Message */
.lead-slider-no-leads {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px;
}

/* Timeline Connector (optional visual enhancement) */
.lead-slider-wrapper::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 70px;
    right: 70px;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c 0%, #e74c3c 100%);
    z-index: 0;
    opacity: 0.3;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .lead-slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .lead-slide {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
        min-width: 0;
        width: calc(100% - 10px);
    }
    
    .lead-slider-wrapper {
        gap: 10px;
    }
    
    .lead-slider-header h2 {
        font-size: 24px;
    }
    
    .lead-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .lead-slide-card {
        padding: 20px;
    }
    
    .lead-slide-title {
        font-size: 18px;
    }
    
    .lead-slider-container {
        padding: 20px 10px;
        overflow: hidden;
    }
    
    .lead-slider-track {
        gap: 15px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .lead-slider-container {
        padding: 15px 5px;
        overflow: hidden;
    }
    
    .lead-slide {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
        min-width: 0;
        width: calc(100% - 10px);
    }
    
    .lead-slide-card {
        padding: 15px;
    }
    
    .lead-slide-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .lead-slide-details li {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .lead-slide-btn {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .lead-slider-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 12px;
    }
    
    .date-icon {
        width: 40px;
        height: 40px;
    }
    
    .date-icon i {
        font-size: 16px;
    }
}