/* LeadFlow Premium Stylesheet - Light Mode */

/* Define CSS Variables for the style system */
:root {
    --bg-main: #f8fafc;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-focus: rgba(99, 102, 241, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --color-primary: #4f46e5;
    --color-primary-hover: #3730a3;
    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    
    /* Sales Stages Status Colors */
    --status-new-bg: rgba(14, 165, 233, 0.1);
    --status-new-text: #0369a1;
    --status-no-response-bg: rgba(100, 116, 139, 0.1);
    --status-no-response-text: #475569;
    --status-follow-up-bg: rgba(217, 119, 6, 0.1);
    --status-follow-up-text: #b45309;
    --status-interested-bg: rgba(5, 150, 105, 0.1);
    --status-interested-text: #047857;
    --status-not-interested-bg: rgba(71, 85, 105, 0.1);
    --status-not-interested-text: #334155;
    --status-invalid-bg: rgba(225, 29, 72, 0.1);
    --status-invalid-text: #be123c;
    
    --sidebar-width: 280px;
    --header-height: 80px;
    --transition-speed: 0.2s;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 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.05);
    --glass-effect: backdrop-filter: blur(12px);
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    color: var(--color-primary);
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.15));
}

.sidebar-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-btn:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.02);
}

.nav-btn.active {
    color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 12px 24px;
}

/* Template Section */
.template-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px 16px 24px 16px;
}

.template-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px 12px 8px;
}

.template-section-header h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--text-muted);
}

.templates-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.template-card {
    background-color: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.template-card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(0, 0, 0, 0.12);
}

.template-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.template-card p {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer p {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.header-titles h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.header-titles p {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
    transform: translateY(-1.5px);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}

.btn-danger:hover {
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
    transform: translateY(-1.5px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
}

.icon-btn-small {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.icon-btn-small:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

/* Metrics Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    padding: 20px 32px 0 32px;
    flex-shrink: 0;
}

.metric-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
}

.metric-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
    font-family: var(--font-heading);
}

/* Card Accent Borders */
.metric-card.total { border-top: 3px solid #64748b; }
.metric-card.new { border-top: 3px solid #0ea5e9; }
.metric-card.no-response { border-top: 3px solid #64748b; }
.metric-card.follow-up { border-top: 3px solid #f59e0b; }
.metric-card.interested { border-top: 3px solid #10b981; }
.metric-card.proposal { border-top: 3px solid #6366f1; }
.metric-card.won { border-top: 3px solid #059669; }
.metric-card.lost { border-top: 3px solid #ef4444; }

/* Conversion Card Gradient */
.metric-card.conversion {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.metric-card.conversion .metric-label {
    color: rgba(255, 255, 255, 0.85);
}

.metric-card.conversion .metric-value {
    color: #ffffff;
}

.metric-card.conversion:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* Control Panel Section */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    gap: 20px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 44px;
    border-radius: 8px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    transition: all var(--transition-speed);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-group select {
    height: 40px;
    padding: 0 32px 0 16px;
    border-radius: 8px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' 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;
    transition: all var(--transition-speed);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* View Pane Switching */
.view-pane {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 32px 24px 32px;
}

.view-pane.hidden {
    display: none !important;
}

/* Kanban Board Layout */
.kanban-view {
    display: flex;
    flex-direction: column;
}

.kanban-board {
    display: flex;
    gap: 16px;
    height: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    align-items: stretch;
}

.kanban-column {
    flex: 0 0 310px;
    min-width: 310px;
    flex-shrink: 0;
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.015);
}

.column-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.column-badge {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.column-dropzone {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color var(--transition-speed);
}

.column-dropzone.dragover {
    background-color: rgba(79, 70, 229, 0.03);
    outline: 2px dashed rgba(79, 70, 229, 0.25);
    outline-offset: -4px;
}

/* Lead Cards in Kanban */
.lead-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    cursor: grab;
    user-select: none;
    transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.lead-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-card-hover);
}

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

.lead-card.dragging {
    opacity: 0.4;
    transform: scale(0.96);
    border-color: var(--color-primary);
}

/* Card left border accents by sales stage */
.lead-card.stage-new { border-left: 3px solid #0ea5e9; }
.lead-card.stage-no-response { border-left: 3px solid #64748b; }
.lead-card.stage-follow-up { border-left: 3px solid #f59e0b; }
.lead-card.stage-interested { border-left: 3px solid #10b981; }
.lead-card.stage-proposal-sent { border-left: 3px solid #6366f1; }
.lead-card.stage-closed-won { border-left: 3px solid #059669; }
.lead-card.stage-lost { border-left: 3px solid #ef4444; }

/* Custom light-glow shadow matching each stage color on hover */
.lead-card.stage-new:hover { box-shadow: 0 10px 18px -3px rgba(14, 165, 233, 0.15), 0 4px 6px -2px rgba(14, 165, 233, 0.08); }
.lead-card.stage-no-response:hover { box-shadow: 0 10px 18px -3px rgba(100, 116, 139, 0.15), 0 4px 6px -2px rgba(100, 116, 139, 0.08); }
.lead-card.stage-follow-up:hover { box-shadow: 0 10px 18px -3px rgba(245, 158, 11, 0.15), 0 4px 6px -2px rgba(245, 158, 11, 0.08); }
.lead-card.stage-interested:hover { box-shadow: 0 10px 18px -3px rgba(16, 185, 129, 0.15), 0 4px 6px -2px rgba(16, 185, 129, 0.08); }
.lead-card.stage-proposal-sent:hover { box-shadow: 0 10px 18px -3px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(99, 102, 241, 0.08); }
.lead-card.stage-closed-won:hover { box-shadow: 0 10px 18px -3px rgba(5, 150, 105, 0.18), 0 4px 6px -2px rgba(5, 150, 105, 0.1); }
.lead-card.stage-lost:hover { box-shadow: 0 10px 18px -3px rgba(239, 68, 68, 0.15), 0 4px 6px -2px rgba(239, 68, 68, 0.08); }

/* Column Top Accent Borders */
.kanban-column[data-stage="new"] { border-top: 3px solid #0ea5e9; }
.kanban-column[data-stage="no-response"] { border-top: 3px solid #64748b; }
.kanban-column[data-stage="follow-up"] { border-top: 3px solid #f59e0b; }
.kanban-column[data-stage="interested"] { border-top: 3px solid #10b981; }
.kanban-column[data-stage="proposal-sent"] { border-top: 3px solid #6366f1; }
.kanban-column[data-stage="closed-won"] { border-top: 3px solid #059669; }
.kanban-column[data-stage="lost"] { border-top: 3px solid #ef4444; }

.lead-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.lead-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

/* Badge System */
.badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.niche-badge {
    background-color: rgba(0, 0, 0, 0.025);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.status-badge {
    border: 1px solid transparent;
}

.status-new {
    background-color: var(--status-new-bg);
    color: var(--status-new-text);
    border-color: rgba(14, 165, 233, 0.2);
}
.status-no-response {
    background-color: var(--status-no-response-bg);
    color: var(--status-no-response-text);
    border-color: rgba(100, 116, 139, 0.2);
}
.status-follow-up {
    background-color: var(--status-follow-up-bg);
    color: var(--status-follow-up-text);
    border-color: rgba(217, 119, 6, 0.2);
}
.status-interested {
    background-color: var(--status-interested-bg);
    color: var(--status-interested-text);
    border-color: rgba(5, 150, 105, 0.2);
}
.status-proposal-sent {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.2);
}
.status-closed-won {
    background-color: rgba(16, 185, 129, 0.15);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.3);
}
.status-lost {
    background-color: rgba(225, 29, 72, 0.15);
    color: #be123c;
    border-color: rgba(225, 29, 72, 0.35);
}

.lead-card-phone {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.lead-card-phone svg {
    color: var(--text-muted);
}

.lead-card-notes {
    font-size: 11px;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.035);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lead-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 8px;
}

.lead-card-links {
    display: flex;
    gap: 8px;
}

.action-link {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.action-link:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.06);
}

.action-link.whatsapp-btn:hover,
.action-link.direct-wa-btn:hover {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.25);
}

.action-link.instagram-btn:hover {
    background-color: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.25);
}

.edit-lead-trigger-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.edit-lead-trigger-btn:hover {
    color: var(--color-primary);
}

/* Leads Table Styling */
.table-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-y: auto;
    max-height: 100%;
    box-shadow: var(--shadow-sm);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leads-table th {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.leads-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.leads-table tr:hover td {
    background-color: rgba(0, 0, 0, 0.005);
}

.leads-table .brand-cell {
    font-weight: 600;
}

.leads-table .notes-cell {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-col {
    text-align: right !important;
}

.table-actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Modal dialog custom styling */
.modal-dialog {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--bg-panel);
    color: var(--text-primary);
    padding: 0;
    max-width: 860px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.modal-dialog.small-dialog {
    max-width: 480px;
}

.modal-dialog::backdrop {
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.015);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

.modal-body-split {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Modal Form Styles */
.modal-form {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border-radius: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    transition: all var(--transition-speed);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.template-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.template-placeholders {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.template-placeholders span {
    color: var(--color-primary);
    font-family: monospace;
    font-weight: bold;
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

/* Interactive Notes Log Styles */
.notes-log-section {
    width: 380px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notes-log-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.add-note-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.add-note-box textarea {
    height: 70px;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    resize: none;
}

.add-note-box textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.notes-timeline {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.note-item {
    background-color: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    position: relative;
}

.note-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.note-item-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.delete-note-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 10px;
}

.delete-note-btn:hover {
    color: var(--color-danger);
}

/* Import CSV Area */
.import-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.csv-dropzone {
    border: 2px dashed rgba(15, 23, 42, 0.15);
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 12px;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.csv-dropzone:hover {
    border-color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.02);
}

.csv-dropzone.dragover {
    border-color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.04);
}

.dropzone-icon {
    color: var(--text-muted);
}

.csv-dropzone:hover .dropzone-icon {
    color: var(--color-primary);
}

.hidden-input {
    display: none;
}

.import-info-footer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}
