*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:#f0f2f5;color:#1a1a2e;min-height:100vh}.loading{display:flex;align-items:center;justify-content:center;height:100vh;font-size:1.2rem;color:#666}.login-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460)}.login-card{background:#fff;padding:2.5rem;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:400px}.login-card h1{text-align:center;margin-bottom:.5rem;color:#1a1a2e;font-size:1.8rem}.login-card .subtitle{text-align:center;color:#666;margin-bottom:2rem;font-size:.9rem}.form-group{margin-bottom:1.2rem}.form-group label{display:block;margin-bottom:.4rem;font-weight:600;font-size:.85rem;color:#333}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.7rem .9rem;border:1.5px solid #ddd;border-radius:8px;font-size:.95rem;transition:border-color .2s;background:#fff}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#0f3460;box-shadow:0 0 0 3px #0f34601a}.error-message{background:#fee;color:#c00;padding:.7rem;border-radius:6px;margin-bottom:1rem;font-size:.85rem;border:1px solid #fcc}.success-message{background:#efe;color:#060;padding:.7rem;border-radius:6px;margin-bottom:1rem;font-size:.85rem;border:1px solid #9d9}.btn{padding:.7rem 1.4rem;border:none;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:600;transition:all .2s;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem}.btn-primary{background:#0f3460;color:#fff}.btn-primary:hover{background:#1a4a7a}.btn-full{width:100%;justify-content:center}.btn-success{background:#28a745;color:#fff}.btn-success:hover{background:#218838}.btn-danger{background:#dc3545;color:#fff}.btn-danger:hover{background:#c82333}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover{background:#5a6268}.btn-sm{padding:.4rem .8rem;font-size:.8rem}.btn-logout{background:transparent;color:#dc3545;border:1px solid #dc3545;padding:.4rem 1rem}.btn-logout:hover{background:#dc3545;color:#fff}.app-layout{display:flex;min-height:100vh}.sidebar{width:240px;background:#1a1a2e;color:#fff;display:flex;flex-direction:column;position:fixed;height:100vh;z-index:10}.sidebar-brand{padding:1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-brand h2{font-size:1.3rem;font-weight:700}.sidebar-nav{padding:1rem 0;flex:1}.sidebar-nav a{display:flex;align-items:center;gap:.8rem;padding:.8rem 1.5rem;color:#ffffffb3;text-decoration:none;font-size:.9rem;transition:all .2s}.sidebar-nav a:hover{background:#ffffff1a;color:#fff}.sidebar-nav a.active{background:#0f3460cc;color:#fff;border-right:3px solid #4fc3f7}.nav-icon{font-size:1.1rem}.main-area{flex:1;margin-left:240px}.top-header{background:#fff;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e0e0e0;position:sticky;top:0;z-index:5}.page-title{font-size:1.1rem;font-weight:600;color:#333}.header-right{display:flex;align-items:center;gap:1rem}.user-info{font-size:.9rem;color:#555}.role-badge{background:#e3f2fd;color:#0f3460;padding:.2rem .6rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.content{padding:2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.2rem;margin-bottom:2rem}.stat-card{background:#fff;padding:1.5rem;border-radius:10px;box-shadow:0 2px 8px #00000014}.stat-card h3{font-size:.8rem;text-transform:uppercase;color:#888;margin-bottom:.5rem;letter-spacing:.5px}.stat-card .stat-value{font-size:2rem;font-weight:700;color:#1a1a2e}.stat-card.primary{border-left:4px solid #0f3460}.stat-card.success{border-left:4px solid #28a745}.stat-card.warning{border-left:4px solid #ffc107}.stat-card.danger{border-left:4px solid #dc3545}.stat-card.info{border-left:4px solid #17a2b8}.card{background:#fff;border-radius:10px;box-shadow:0 2px 8px #00000014;overflow:hidden}.card-header{padding:1.2rem 1.5rem;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}.card-header h2{font-size:1.1rem;color:#333}.card-body{padding:1.5rem}.table-container{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;padding:.8rem 1rem;background:#f8f9fa;font-size:.8rem;text-transform:uppercase;color:#666;font-weight:600;letter-spacing:.5px;border-bottom:2px solid #eee}td{padding:.8rem 1rem;border-bottom:1px solid #f0f0f0;font-size:.9rem}tr:hover{background:#f8f9fc}.status-badge{padding:.25rem .7rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase;display:inline-block}.status-new{background:#e3f2fd;color:#1565c0}.status-contacted{background:#fff3e0;color:#e65100}.status-interested{background:#e8f5e9;color:#2e7d32}.status-follow_up{background:#fce4ec;color:#c62828}.status-proposal_sent{background:#f3e5f5;color:#6a1b9a}.status-closed_won{background:#c8e6c9;color:#1b5e20}.status-closed_lost{background:#ffcdd2;color:#b71c1c}.filters{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.filters input,.filters select{padding:.6rem .9rem;border:1.5px solid #ddd;border-radius:8px;font-size:.9rem}.filters input:focus,.filters select:focus{outline:none;border-color:#0f3460}.pagination{display:flex;justify-content:center;align-items:center;gap:.5rem;padding:1rem}.pagination button{padding:.5rem 1rem;border:1px solid #ddd;background:#fff;border-radius:6px;cursor:pointer;font-size:.85rem}.pagination button:hover:not(:disabled){background:#e3f2fd}.pagination button:disabled{opacity:.5;cursor:not-allowed}.pagination span{font-size:.85rem;color:#666}.form-card{background:#fff;padding:2rem;border-radius:10px;box-shadow:0 2px 8px #00000014;max-width:700px}.form-card h2{margin-bottom:1.5rem;color:#1a1a2e}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions{display:flex;gap:1rem;margin-top:1.5rem}.followup-card{background:#fff;border-radius:10px;padding:1.2rem 1.5rem;margin-bottom:1rem;box-shadow:0 2px 8px #00000014;display:flex;justify-content:space-between;align-items:center;border-left:4px solid #ffc107}.followup-info h3{font-size:1rem;color:#333;margin-bottom:.3rem}.followup-info p{font-size:.85rem;color:#666}.followup-actions{display:flex;gap:.5rem}.empty-state{text-align:center;padding:3rem;color:#888}.empty-state h3{font-size:1.2rem;margin-bottom:.5rem}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.section-header h2{font-size:1.3rem;color:#1a1a2e}.toggle-switch{position:relative;display:inline-block;width:44px;height:24px;cursor:pointer}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;inset:0;background-color:#ccc;border-radius:24px;transition:.3s}.toggle-slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;border-radius:50%;transition:.3s}.toggle-switch input:checked+.toggle-slider{background-color:#28a745}.toggle-switch input:checked+.toggle-slider:before{transform:translate(20px)}.toggle-disabled{opacity:.4;cursor:not-allowed}.row-inactive{opacity:.6}.status-badge.status-active{background:#d4edda;color:#155724}.status-badge.status-inactive{background:#f8d7da;color:#721c24}.tabs{display:flex;gap:0;margin-bottom:1.5rem;border-bottom:2px solid #e0e0e0}.tab-btn{padding:.75rem 1.5rem;border:none;background:none;cursor:pointer;font-size:.95rem;font-weight:600;color:#666;border-bottom:3px solid transparent;margin-bottom:-2px;transition:all .2s}.tab-btn:hover{color:#1a1a2e}.tab-btn.active{color:#0f3460;border-bottom-color:#0f3460}.filters-bar{display:flex;gap:1rem;align-items:flex-end;margin-bottom:1.5rem;flex-wrap:wrap}.filter-group{display:flex;flex-direction:column;gap:.3rem}.filter-group label{font-size:.8rem;font-weight:600;color:#555}.filter-group input,.filter-group select{padding:.5rem .7rem;border:1px solid #ddd;border-radius:6px;font-size:.85rem}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;padding:1rem}.page-info{font-size:.9rem;color:#555;font-weight:500}.status-badge.status-completed{background:#d4edda;color:#155724}.status-badge.status-pending{background:#fff3cd;color:#856404}.status-badge.status-missed{background:#f8d7da;color:#721c24}.status-badge.status-msg-sent{background:#d4edda;color:#155724}.status-badge.status-msg-logged{background:#d1ecf1;color:#0c5460}.status-badge.status-msg-failed{background:#f8d7da;color:#721c24}.msg-cell{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;color:#555}.btn-whatsapp{background:#25d366;color:#fff;font-weight:600;border:none}.btn-whatsapp:hover:not(:disabled){background:#1da851}.btn-whatsapp:disabled{cursor:not-allowed;opacity:.7}.btn-whatsapp-sent{background:#aaa;color:#fff}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:2rem;max-width:440px;width:90%;box-shadow:0 20px 60px #0000004d}.modal-content h3{margin:0 0 1rem;font-size:1.2rem;color:#1a1a2e}.modal-content p{margin:0 0 .75rem;color:#444;font-size:.95rem;line-height:1.5}.modal-warning{color:#856404;background:#fff3cd;padding:.6rem .8rem;border-radius:6px;font-size:.85rem;border:1px solid #ffc107}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.row-deleted{opacity:.5;text-decoration:line-through}.status-badge.status-deleted{background:#e2e3e5;color:#6c757d}.show-deleted-toggle{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.9rem;color:#555;font-weight:500}.show-deleted-toggle input{width:16px;height:16px;cursor:pointer}
