style.css
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #f4f5f7;
    color: #1a1a2e;
}

/* Auth page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.auth-box h1 { font-size: 20px; margin-bottom: 20px; text-align: center; }
.auth-box label { display: block; margin-bottom: 14px; font-size: 13px; color: #555; }
.auth-box input {
    width: 100%; padding: 10px; margin-top: 4px;
    border: 1px solid #ccc; border-radius: 6px; font-size: 14px;
}
.auth-box button {
    width: 100%; padding: 10px; background: #2b6cb0; color: #fff;
    border: none; border-radius: 6px; font-size: 14px; cursor: pointer; margin-top: 8px;
}
.auth-box button:hover { background: #2c5282; }
.alert { padding: 10px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }
.alert-error { background: #fed7d7; color: #822727; }

/* App shell */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: #1a1a2e; color: #fff; padding: 14px 24px;
}
.brand { font-weight: 600; }
.topbar nav a { color: #cbd5e0; text-decoration: none; margin-left: 20px; font-size: 14px; }
.topbar nav a:hover { color: #fff; }
.user-chip { margin-left: 20px; font-size: 13px; color: #a0aec0; }

.container { max-width: 1000px; margin: 30px auto; padding: 0 20px; }

.stats-row { display: flex; gap: 16px; margin: 20px 0; }
.stat-card {
    background: #fff; padding: 20px; border-radius: 8px; flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-value { font-size: 28px; font-weight: 700; color: #2b6cb0; }
.stat-label { font-size: 13px; color: #718096; margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf2f7; font-size: 13px; }
.data-table th { background: #f7fafc; color: #4a5568; }

/* Page header with action button */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.btn-primary {
    background: #2b6cb0; color: #fff; padding: 8px 16px; border-radius: 6px;
    text-decoration: none; font-size: 14px; border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: #2c5282; }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.filter-bar input[type="text"] { padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; flex: 1; max-width: 320px; }
.filter-bar select { padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }
.filter-bar button { padding: 8px 14px; border: none; background: #4a5568; color: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.filter-bar a { font-size: 13px; color: #718096; }

/* Stage badges */
.stage-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.stage-new { background: #ebf8ff; color: #2b6cb0; }
.stage-contacted { background: #fefcbf; color: #975a16; }
.stage-qualified { background: #e9d8fd; color: #6b46c1; }
.stage-won { background: #c6f6d5; color: #276749; }
.stage-lost { background: #fed7d7; color: #822727; }

/* Forms */
.container-narrow { max-width: 640px; }
.form-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.form-row { display: flex; gap: 16px; }
.form-row label { flex: 1; }
.form-card label { display: block; margin-bottom: 14px; font-size: 13px; color: #555; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; padding: 9px; margin-top: 4px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; font-family: inherit;
}
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions a { color: #718096; font-size: 14px; }

/* Contact detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.detail-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.detail-card h3 { margin-top: 0; font-size: 14px; color: #4a5568; }
.detail-card p { font-size: 13px; margin: 8px 0; }
.call-item { font-size: 13px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.muted { color: #a0aec0; font-size: 13px; }

/* Notes / timeline */
.note-form { display: flex; gap: 8px; margin-bottom: 20px; align-items: flex-start; }
.note-form textarea { flex: 1; padding: 9px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 13px; }
.timeline-item { background: #fff; padding: 12px 16px; border-radius: 6px; margin-bottom: 8px; font-size: 13px; box-shadow: 0 1px 2px 
rgba(0,0,0,0.06); }
.timeline-type { display: inline-block; background: #edf2f7; color: #4a5568; padding: 2px 8px; border-radius: 4px; font-size: 11px; text-transform: 
uppercase; margin-right: 8px; }
.timeline-desc { display: block; margin: 6px 0; }
.timeline-meta { color: #a0aec0; font-size: 11px; }

.alert-success { background: #c6f6d5; color: #276749; padding: 10px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }
.number-buy-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf2f7; font-size: 13px; }
.number-buy-row input, .number-buy-row select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 12px; }

/* Browser softphone widget */
.softphone {
    position: fixed; bottom: 20px; right: 20px; width: 260px;
    background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    font-size: 13px; z-index: 1000; overflow: hidden;
}
.softphone-header {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px;
    background: #1a1a2e; color: #fff; cursor: pointer; user-select: none;
}
.softphone-toggle { margin-left: auto; font-size: 11px; }
.softphone-collapsed .softphone-body { display: none; }
.softphone-collapsed .softphone-toggle { transform: rotate(180deg); }
.softphone-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #718096; display: inline-block; }
.softphone-dot-ready { background: #48bb78; }
.softphone-dot-off { background: #a0aec0; }
.softphone-dot-ringing { background: #ecc94b; animation: softphone-pulse 1s infinite; }
.softphone-dot-oncall { background: #2b6cb0; }
@keyframes softphone-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.softphone-body { padding: 14px; }
.softphone-body input[type="text"] {
    width: 100%; padding: 8px; margin-bottom: 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px;
}
.softphone-body button { padding: 8px 12px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; margin-right: 6px; }
#softphoneCall, #softphoneAccept { background: #2b6cb0; color: #fff; }
#softphoneReject, #softphoneHangup { background: #e53e3e; color: #fff; }
#softphoneMute { background: #edf2f7; color: #2d3748; }
.softphone-incoming p, .softphone-incall p { margin: 0 0 8px; font-weight: 600; }
.softphone-error { color: #822727; margin-top: 8px; margin-bottom: 0; }




