/* 
 * RAJIB TELECOM - CUSTOMER LEAD MANAGEMENT CRM
 * Master Design System & Stylesheet
 */

:root {
    --primary: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #e6f0ff;
    --sidebar-bg: #0a1e3f;
    --sidebar-hover: #142e5c;
    --sidebar-active: #1d4ed8;
    --dark-text: #1e293b;
    --muted-text: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    
    /* Status Colors */
    --status-interested: #8b5cf6;
    --status-interested-bg: #f3e8ff;
    --status-followup: #f59e0b;
    --status-followup-bg: #fef3c7;
    --status-new: #2563eb;
    --status-new-bg: #dbeafe;
    --status-purchased: #10b981;
    --status-purchased-bg: #d1fae5;
    --status-prebooking: #6366f1;
    --status-prebooking-bg: #e0e7ff;
    --status-notinterested: #ef4444;
    --status-notinterested-bg: #fee2e2;
    --status-lost: #64748b;
    --status-lost-bg: #f1f5f9;

    /* Actions */
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1ea952;
    --call-green: #10b981;
    --call-hover: #059669;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 4K Glow Effects */
    --glow-primary: 0 0 22px rgba(0, 82, 204, 0.45);
    --glow-whatsapp: 0 0 22px rgba(37, 211, 102, 0.45);
    --glow-call: 0 0 22px rgba(16, 185, 129, 0.45);
    --glow-card: 0 12px 32px rgba(0, 82, 204, 0.08);
    --glow-border: 1px solid rgba(0, 82, 204, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--dark-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted-text); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-column { flex-direction: column; }
.flex-1 { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* Status Badges matching PDF exactly */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge-interested {
    background-color: var(--status-interested-bg);
    color: var(--status-interested);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-followup {
    background-color: var(--status-followup-bg);
    color: var(--status-followup);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-new {
    background-color: var(--status-new-bg);
    color: var(--status-new);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-purchased {
    background-color: var(--status-purchased-bg);
    color: var(--status-purchased);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-prebooking {
    background-color: var(--status-prebooking-bg);
    color: var(--status-prebooking);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-not-interested {
    background-color: var(--status-notinterested-bg);
    color: var(--status-notinterested);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-lost {
    background-color: var(--status-lost-bg);
    color: var(--status-lost);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.badge-default {
    background-color: #f1f5f9;
    color: #475569;
}

/* Customer Type Chips */
.type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background-color: #f1f5f9;
    color: #475569;
}
.type-new { background-color: #e0f2fe; color: #0369a1; }
.type-old { background-color: #f1f5f9; color: #475569; }
.type-repeat { background-color: #ecfdf5; color: #047857; }
.type-prebooking { background-color: #ede9fe; color: #6d28d9; }
.type-interested { background-color: #fef3c7; color: #b45309; }

/* Call & WhatsApp Quick Buttons */
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.btn-call:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.65);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1ea952 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(37, 211, 102, 0.65);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0052cc 0%, #1d4ed8 100%);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #003d99 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 82, 204, 0.65);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ef4444;
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 13px;
    border: none;
    cursor: pointer;
}
.btn-danger:hover {
    background-color: #dc2626;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlide 0.25s ease-out;
}
@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--dark-text);
    background-color: #ffffff;
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}
