:root {
    --bg-deep: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --accent: #6366f1;
    --success-color: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

.enroll-sections-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.enroll-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.light-mode .enroll-section {
    background: rgba(0, 0, 0, 0.02);
}

.prospect-matricula-badge {
    background: var(--success-color, #10b981);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: monospace;
    margin: 4px 0;
    display: inline-block;
}

.prospect-sync-pending-badge {
    background: #fbbf24;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    display: inline-block;
    animation: pulseSync 2s infinite;
}

@keyframes pulseSync {
    0% { opacity: 0.8; }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.8; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: radial-gradient(circle at top left, #1e293b, var(--bg-deep));
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
    --bg-deep: #f1f5f9;
    --bg-card: #ffffff;
    --accent: #4f46e5;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.1);
}

body.light-mode {
    background: radial-gradient(circle at top left, #f8fafc, #e2e8f0);
}

body.light-mode .kanban-column {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .column-header {
    color: var(--text-main);
}

body.light-mode .quick-search-input {
    background: #ffffff;
    color: var(--text-main);
    border-color: #cbd5e1;
}

body.light-mode .quick-search-input::placeholder {
    color: #94a3b8;
}

body.light-mode .badge {
    background: var(--accent);
    color: #ffffff;
}

body.light-mode input, body.light-mode select, body.light-mode textarea {
    background: #ffffff;
    color: var(--text-main);
    border-color: #cbd5e1;
}

body.light-mode .semaforo-ok { background: #dcfce7; border-color: #22c55e; color: #166534; }
body.light-mode .semaforo-hoy { background: #fef9c3; border-color: #eab308; color: #854d0e; }
body.light-mode .semaforo-alert { background: #fee2e2; border-color: #ef4444; color: #991b1b; }

/* Table Light Mode Overrides */
body.light-mode th {
    background: #f8fafc;
    color: var(--text-main);
    border-bottom: 2px solid #e2e8f0;
}

body.light-mode tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode tbody tr:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.view-subtitle {
    margin: 2rem 0 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.glass-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.light-mode .glass-card h3 {
    color: var(--text-main);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a.active {
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-grid-2-1 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-grid-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Responsive Grids */
.grid-2col, .grid-1-2, .grid-3col {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-1-2 {
    grid-template-columns: 1fr 2fr;
}

.grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .dashboard-grid-2-1, .dashboard-grid-equal, .grid-2col, .grid-3col {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card.active-filter {
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.view-container {
    animation: fadeIn 0.3s ease-in-out;
    margin-top: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.table-container {
    padding: 0;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-main);
}

th, td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.prospect-origin-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.prospect-next-action-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

th {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(8px);
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.btn-secondary {
    background: #475569;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #64748b;
}

body.light-mode .btn-secondary {
    background: #cbd5e1;
    color: #0f172a;
}

body.light-mode .btn-secondary:hover {
    background: #94a3b8;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.kanban-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    height: 80vh;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.kanban-column > div[id^="cards-"] {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px; /* Space for scrollbar */
}

/* Custom scrollbar for Kanban columns */
.kanban-column > div[id^="cards-"]::-webkit-scrollbar {
    width: 6px;
}
.kanban-column > div[id^="cards-"]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.column-header {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prospect-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prospect-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
}

.prospect-card:hover .prospect-move-btn {
    opacity: 1;
}

.prospect-move-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

/* On Mobile always show move button */
@media screen and (max-width: 768px) {
    .prospect-move-btn {
        opacity: 1;
    }
}

.phase-selector-menu {
    position: fixed;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phase-selector-item {
    padding: 8px 15px;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.phase-selector-item:hover {
    background: var(--accent);
}

.prospect-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.prospect-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    background: #ffffff;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-weight: 700;
}

body.light-mode .badge {
    background: #ffffff;
    color: var(--accent);
    border-color: var(--border-color);
}

.table-row-select {
    padding: 0.4rem;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-warning {
    background: #f59e0b;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-warning:hover {
    background: #d97706;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 60%;
    min-width: 480px;
    max-width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

.modal-content h2 { margin-bottom: 1.5rem; }

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prospect-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.full-width {
    grid-column: span 3;
}

.form-actions {
    margin-top: 1rem;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--accent);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

input, select, textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

input:hover, select:hover, textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline {
    margin: 1.5rem 0;
    max-height: 480px; /* Tamaño fijo solicitado */
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.timeline-item {
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
    border-radius: 0 8px 8px 0;
}

.btn-delete-seguimiento {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    color: #ef4444;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
}

.btn-delete-seguimiento:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-date { font-size: 0.75rem; color: var(--text-muted); }

.prospect-origin-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.prospect-vendedor-tag {
    display: inline-block;
    margin-top: 0.5rem;
    margin-left: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.prospect-telemarketer-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #1e293b; /* Darker text for pastel backgrounds */
    margin-bottom: 0.2rem;
    margin-left: 0.3rem;
}

.card-tags-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.prospect-tags-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.prospect-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.prospect-detail-info div {
    font-size: 0.85rem;
}

.prospect-detail-info div span {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Scrollable Table Improvements */
div.table-container.scrollable-table {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.2);
    margin-top: 1rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Specific Table Action Buttons */
.btn-table {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-table:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-table-edit { background: var(--accent); color: white; }
.btn-table-danger { background: #ef4444; color: white; }
.btn-table-info { background: #6366f1; color: white; }

#oferta-config-container {
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Appointment Styles */
.prospect-card-cita {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 0.5rem;
    align-items: center;
}

.cita-info {
    border-left: 1px solid var(--glass-border);
    padding-left: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    font-size: 0.8rem;
}

.cita-info strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 2px;
}

.cita-info span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.semaforo-past { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.semaforo-today { background: rgba(34, 197, 94, 0.2); border: 1px solid #22c55e; color: #4ade80; }
.semaforo-tomorrow { background: rgba(234, 179, 8, 0.2); border: 1px solid #eab308; color: #fde047; }
.semaforo-future { background: rgba(100, 116, 139, 0.2); border: 1px solid #94a3b8; color: #cbd5e1; }

/* Light mode: semaforo card text must be dark for readability */
body.light-mode .semaforo-past  { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
body.light-mode .semaforo-today { background: rgba(34, 197, 94, 0.12); color: #166534; }
body.light-mode .semaforo-tomorrow { background: rgba(234, 179, 8, 0.12); color: #854d0e; }
body.light-mode .semaforo-future { background: rgba(100, 116, 139, 0.12); color: #334155; }

/* Light mode: prospect name & meta inside kanban cards */
body.light-mode .prospect-name { color: #0f172a; }
body.light-mode .prospect-meta { color: #475569; }

/* Light mode: cita date panel */
body.light-mode .cita-info { color: #0f172a; }
body.light-mode .cita-info strong { color: #0f172a; }
body.light-mode .cita-info span { color: #334155; opacity: 1; }

.semaforo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.semaforo-dot.past { background: #ef4444; box-shadow: 0 0 5px #ef4444; }
.semaforo-dot.today { background: #22c55e; box-shadow: 0 0 5px #22c55e; }
.semaforo-dot.tomorrow { background: #eab308; box-shadow: 0 0 5px #eab308; }
.semaforo-dot.future { background: #94a3b8; box-shadow: 0 0 5px #94a3b8; }

.semaforo-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.semaforo-btn:hover {
    transform: scale(1.2);
}

.semaforo-btn.past { background: #ef4444; }
.semaforo-btn.today { background: #22c55e; }
.semaforo-btn.tomorrow { background: #eab308; }
.semaforo-btn.future { background: #94a3b8; }

.semaforo-btn.active {
    border-color: white;
    box-shadow: 0 0 10px currentColor;
}

.kanban-filter-container {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.column-filter-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid var(--glass-border);
}

.column-filter-panel select, .column-filter-panel input {
    width: 100%;
    padding: 0.3rem;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 4px;
}

.quick-search-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: white;
    width: 60px;
    transition: width 0.3s ease;
}

.quick-search-input:focus {
    width: 120px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-color: var(--accent);
}

/* --- PRINT STYLES --- */
@media print {
    /* (Mantenemos los estilos de impresión existentes) */
    .navbar,
    .section-header button,
    .section-header .btn-primary,
    .section-header .btn-secondary,
    .section-header div[style*="display: flex; gap: 1rem"],
    #filtro-reportes-form,
    .kanban-filter-container,
    .column-filter-panel,
    .btn-icon {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .view-container {
        padding: 0 !important;
        margin: 0 !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .main-content {
        height: auto !important;
        overflow: visible !important;
    }

    .glass-card,
    .form-container,
    .table-container {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        color: black !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    h1, h2, h3.view-subtitle {
        color: black !important;
        margin-bottom: 10px !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 20px !important;
    }

    th, td {
        border: 1px solid #ccc !important;
        color: black !important;
        padding: 8px !important;
    }

    th {
        background-color: #f0f0f0 !important;
    }

    .view-pill {
        background: none !important;
        border: none !important;
        color: black !important;
        padding: 0 !important;
    }
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media screen and (max-width: 1024px) {
    .prospect-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: flex-start;
    }

    .nav-links {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
        gap: 1.2rem;
    }

    .nav-links::-webkit-scrollbar {
        height: 4px;
    }

    .navbar .actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .navbar .actions button, .navbar .actions select {
        margin: 0 !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kanban-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.8rem;
        padding-bottom: 1rem;
    }

    .kanban-column {
        min-width: 85vw;
        scroll-snap-align: center;
        height: 70vh;
    }

    .prospect-form-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }

    .modal-content {
        padding: 1rem;
    }

    .grid-2col, .grid-1-2, .grid-3col, .dashboard-grid-2-1, .dashboard-grid-equal {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .prospect-detail-info {
        grid-template-columns: 1fr;
    }

    /* Adjust font sizes for mobile */
    h1 { font-size: 1.5rem; }
    .stat-card .value { font-size: 1.5rem; }
    
    /* Make tables responsive */
    .table-container {
        overflow-x: auto;
    }

    .toast-container {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 1rem;
        padding: 0 1rem;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    /* Floating action button for mobile? Or just make the primary button easy to hit */
    .btn-primary {
        padding: 0.75rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .navbar .actions button.btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}
/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--accent);
}

.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}
/* Prospect Tagging Styles */
.prospect-tag-symbol {
    display: inline-block;
    margin-right: 8px;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    transition: transform 0.2s;
}

.prospect-tag-symbol::before {
    content: '❯❯';
}

.prospect-tag-symbol:hover {
    transform: scale(1.2);
}

/* Tag Manager in Profile */
.tag-manager-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.tag-manager-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag-manager-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.tag-color-picker {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.tag-name-input {
    flex-grow: 1;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Tag Selector in Detail Modal */
.tag-selector-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
}

.tag-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    opacity: 0.6;
}

.tag-pill.active {
    opacity: 1;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tag-pill:hover {
    opacity: 1;
    transform: translateY(-1px);
}
