/* CRM System - Light Pastel Theme */

/* Color Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #ffffff;
    --dark-color: #1f2937;
    
    /* Light Pastel Palette */
    --pastel-blue: #f0f9ff;
    --pastel-green: #f0fdf4;
    --pastel-yellow: #fffbeb;
    --pastel-pink: #fdf2f8;
    --pastel-purple: #faf5ff;
    --pastel-orange: #fff7ed;
    
    /* Box Shadow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* General Styles */
body {
    background-color: #f9fafb;
    color: #1f2937;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Landing Page Styles */
.hero-section {
    padding: 4rem 0;
    background-color: var(--pastel-blue);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Dashboard Cards */
.count-change {
    transition: all 0.3s ease;
}

.count-change.highlight {
    color: var(--primary-color);
    transform: scale(1.2);
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Tab Navigation Styles */
.nav-tabs {
    border-bottom: 1px solid #e5e7eb;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
}

/* Kanban Board Styles */
.kanban-board {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    gap: 1rem;
}

.kanban-column {
    min-width: 250px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 0.75rem;
}

.kanban-column-header {
    font-weight: 600;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-cards {
    min-height: 200px;
}

.kanban-card {
    background-color: white;
    border-radius: 5px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
}

.kanban-card:active {
    cursor: grabbing;
}

/* Timeline Feed Styles */
.timeline-feed {
    position: relative;
    padding-left: 2rem;
}

.timeline-feed::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Mention Styles */
.mention {
    color: var(--primary-color);
    background-color: var(--pastel-blue);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Chart container styles */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

.chart-container.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    color: var(--primary-color);
    font-weight: 600;
}

/* Toast notifications */
.toast-container {
    z-index: 1100;
}

/* Responsive Design Adjustments */
@media (max-width: a767px) {
    .kanban-board {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kanban-column {
        width: 100%;
        min-width: 100%;
    }
    
    .kanban-card {
        margin-bottom: 0.5rem;
    }
    
    .timeline-feed {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.25rem;
    }
}

@media (max-width: 576px) {
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Duplicate Detection Styles */
.duplicate-record {
    background-color: #fef2f2 !important; /* Light red background */
    border-left: 4px solid #ef4444 !important; /* Red left border */
    position: relative;
}

.duplicate-record:hover {
    background-color: #fee2e2 !important; /* Slightly darker on hover */
}

.duplicate-badge {
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-left: 0.5rem;
}

.duplicate-icon {
    color: #ef4444;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.duplicate-row td {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444;
}

.duplicate-row:hover td {
    background-color: #fee2e2 !important;
}

.duplicate-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.duplicate-indicator i {
    margin-right: 0.25rem;
}

/* Duplicate Modal Styles */
.duplicate-modal .modal-header {
    background-color: #fef2f2;
    border-bottom: 1px solid #ef4444;
}

.duplicate-modal .modal-title {
    color: #ef4444;
    font-weight: 600;
}

.duplicate-item {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.duplicate-item:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.duplicate-item.selected {
    background-color: #ecfdf5;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.duplicate-item-header {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.duplicate-item-details {
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-keep-duplicates {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-keep-duplicates:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-remove-duplicates {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-remove-duplicates:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Duplicate Summary Styles */
.duplicate-summary {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.duplicate-summary-title {
    color: #ef4444;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.duplicate-summary-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Animation for duplicate highlighting */
@keyframes duplicateFlash {
    0% { background-color: #fef2f2; }
    50% { background-color: #fecaca; }
    100% { background-color: #fef2f2; }
}

.duplicate-flash {
    animation: duplicateFlash 1s ease-in-out 3;
}
