* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { background: #fff; padding: 15px 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 1.3rem; color: #333; }
.header a { color: #666; text-decoration: none; margin-left: 15px; }
.header a:hover { color: #333; }
.login-box { max-width: 400px; margin: 100px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.login-box h2 { margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.btn { display: inline-block; padding: 10px 20px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; }
.btn:hover { background: #0056b3; }
.btn-success { background: #28a745; }
.btn-success:hover { background: #218838; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }
.table { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f8f9fa; font-weight: 600; }
.table tr:hover { background: #f9f9f9; }
.alert { padding: 12px; border-radius: 4px; margin-bottom: 15px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; }
.kanban { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 20px; }
.kanban-column { min-width: 200px; background: #e9ecef; border-radius: 8px; padding: 10px; }
.kanban-column h4 { margin-bottom: 10px; padding: 8px; background: #fff; border-radius: 4px; font-size: 0.9rem; }
.kanban-card { background: #fff; padding: 10px; border-radius: 4px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.kanban-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.kanban-card .name { font-weight: 500; margin-bottom: 5px; }
.kanban-card .phone { font-size: 0.85rem; color: #666; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.text-muted { color: #666; font-size: 0.9rem; }
.stats { display: flex; gap: 20px; margin-bottom: 20px; }
.stat-box { background: #fff; padding: 20px; border-radius: 8px; flex: 1; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stat-box .number { font-size: 2rem; font-weight: bold; color: #007bff; }
.stat-box .label { color: #666; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 20px; border-radius: 8px; max-width: 500px; width: 90%; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.modal-header h3 { margin: 0; }
.close { cursor: pointer; font-size: 1.5rem; }
.badge { display: inline-block; padding: 3px 8px; background: #e9ecef; border-radius: 3px; font-size: 0.8rem; }
.badge-primary { background: #007bff; color: #fff; }
.empty-state { text-align: center; padding: 40px; color: #999; }
