/* Custom styles for the lead management system */

/* Highlighted row for search results */
tr.highlight-row {
    background-color: rgba(255, 243, 205, 0.5) !important;
    animation: highlight-fade 3s forwards;
}

@keyframes highlight-fade {
    0% {
        background-color: rgba(255, 243, 205, 0.5);
    }
    100% {
        background-color: transparent;
    }
}

/* Search results styling */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.search-result-subtitle {
    font-size: 12px;
    color: #666;
}

.search-result-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
    color: white;
}

.search-result-type.enquiry {
    background: #007bff;
}

.search-result-type.lead {
    background: #28a745;
}

.search-result-type.booking {
    background: #6f42c1;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Dashboard Enhancements */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-dot {
    animation: pulse 2s infinite;
}

/* Card hover effects */
.card-box {
    transition: all 0.3s ease;
}

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

/* Gradient backgrounds for stats cards */
.widget-style3 {
    border-radius: 10px;
    overflow: hidden;
}

/* Button enhancements */
.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.thead-light th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Badge improvements */
.badge-sm {
    font-size: 10px;
    padding: 3px 6px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-box {
        margin-bottom: 15px;
    }
    
    .font-30 {
        font-size: 24px !important;
    }
    
    .font-16 {
        font-size: 14px !important;
    }
}

/* Custom scrollbar for better UX */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}