/* =========================================
   1. Variables & Theme Configuration
   ========================================= */
:root {
    --bg-color: #f8fafc;
    --card-bg: #FFFFFF;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-dark: #0f172a;
    --accent-hover: #1e293b;
    --input-bg: #FFFFFF;
    --input-border: #cbd5e1;
    --input-focus: #0f172a;
    --success-green: #10b981;
    --success-bg: #ecfdf5;
    --danger-red: #ef4444;
    --danger-bg: #fef2f2;
    --border-subtle: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 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.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================================
   2. Global Reset & Base Styles
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Top Left Logo */
.top-left-logo {
    position: absolute;
    top: 20px;
    left: 24px;
    width: 54px;
    height: auto;
    z-index: 20;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease;
}

.top-left-logo:hover {
    transform: scale(1.04);
}

/* =========================================
   3. Main Container & Layout
   ========================================= */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 75px auto 50px;
    padding: 0 24px;
    flex: 1;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.form-header h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: #f8fafc;
    transform: translateX(-2px);
}

/* =========================================
   4. Form Styles (Cards & Inputs)
   ========================================= */
.client-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: clamp(20px, 4vw, 40px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.form-section {
    margin-bottom: 24px;
}

.form-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea,
.remarks-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.remarks-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    justify-content: flex-end;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-dark);
    color: white;
    border: none;
    padding: 14px 28px;
    min-height: 48px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 14px 28px;
    min-height: 48px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--input-border);
    transform: translateY(-1px);
}

/* =========================================
   5. Search Box & Filter Panel
   ========================================= */
.search-wrapper {
    position: relative;
    width: 100%;
    margin: 40px auto 24px;
    display: flex;
    flex-direction: column;
}

.search-container {
    position: relative;
    width: 100%;
    display: flex;
    gap: 12px;
}

.search-input-field {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px 12px 48px;
    font-size: 16px;
    color: var(--text-primary);
    background-color: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    background-color: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background-color: #f8fafc;
    border-color: var(--input-border);
}

.btn-filter.active {
    background-color: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

/* Filter Panel Dropdown */
.filter-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 100%;
    max-width: 500px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    z-index: 40;
    display: none;
}

.filter-panel.show {
    display: block;
    animation: filterSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.filter-group input,
.filter-group select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background-color: #f8fafc;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-dark);
    background-color: white;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.btn-apply {
    background-color: var(--accent-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply:hover {
    background-color: var(--accent-hover);
}

.btn-clear {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
}

/* Search Suggestions Box */
.suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.suggestions-box:not(:empty) {
    display: block;
}

.suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item:active {
    background-color: #f8fafc;
}

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

.suggestion-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* =========================================
   6. Table Styles & Responsiveness
   ========================================= */
.leads-table-container,
.client-list-container {
    width: 100%;
    margin-top: 24px;
    background: white;
    border-radius: var(--radius-xl);
    padding: clamp(16px, 3vw, 32px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leads-table,
.client-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.leads-table th,
.client-table th {
    background-color: #f8fafc;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.leads-table td,
.client-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.leads-table tbody tr:hover,
.client-table tbody tr:hover {
    background-color: #f8fafc;
}

.leads-table tr:last-child td,
.client-table tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background-color: #dcfce7 !important;
}

/* Inline Table Dropdown */
.status-select {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background-color: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    min-width: 110px;
}

.status-select:focus {
    border-color: var(--accent-dark);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.status-badge.active { background-color: #dcfce7; color: #166534; }
.status-badge.lead { background-color: #dbeafe; color: #1e40af; }
.status-badge.pending { background-color: #fff7ed; color: #c2410c; }
.status-badge.completed { background-color: #f0f9ff; color: #0369a1; }
.status-badge.inactive { background-color: #f1f5f9; color: #64748b; }

/* Table Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: capitalize;
    white-space: nowrap;
}

.btn-edit {
    background-color: #10b981;
    color: white;
}

.btn-edit:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-delete {
    background-color: white;
    color: var(--danger-red);
    border: 1px dashed var(--danger-red);
}

.btn-delete:hover {
    background-color: var(--danger-bg);
    transform: translateY(-1px);
}

.btn-view-remarks {
    background-color: #f8fafc;
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-view-remarks:hover {
    background-color: #e2e8f0;
}

/* Copy to Clipboard link */
.copy-target {
    cursor: pointer;
    transition: color 0.15s ease;
    word-break: break-all;
}

.copy-target:hover {
    color: #2563eb;
    text-decoration: underline;
}

.copy-target:active {
    transform: scale(0.98);
}

/* =========================================
   7. Login Page Styles
   ========================================= */
.login-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 36px);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background-color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.welcome-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.google-sign-in-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.google-sign-in-btn:hover {
    background-color: #f8fafc;
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   8. Dashboard Styles
   ========================================= */
.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    text-align: center;
    padding: 30px 16px;
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 680px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.secondary-btn {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
}

.secondary-btn:hover {
    background-color: #f8fafc;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   9. Modals (Remarks & Delete Confirm)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 16px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.remarks-modal-box {
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-dark);
    padding: clamp(20px, 4vw, 32px);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.modal-overlay.show .remarks-modal-box {
    transform: scale(1);
}

.remarks-textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px;
    font-size: 15px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    margin-bottom: 16px;
}

.remarks-textarea:focus {
    border-color: var(--accent-dark);
    background: white;
}

.remarks-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-save-remarks {
    background-color: var(--accent-dark);
    color: white;
    border: none;
    padding: 10px 24px;
    min-height: 42px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save-remarks:hover {
    background-color: var(--accent-hover);
    transform: scale(1.03);
}

/* Delete Confirm Modal Content */
.confirm-modal-content {
    background: white;
    padding: clamp(24px, 4vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.modal-overlay.show .confirm-modal-content {
    transform: scale(1);
}

.confirm-message {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger-red);
    margin-bottom: 24px;
    line-height: 1.4;
    text-transform: capitalize;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-confirm-yes {
    background-color: white;
    color: var(--danger-red);
    border: 1px dashed var(--danger-red);
    border-radius: 20px;
    padding: 8px 24px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-yes:hover {
    background-color: var(--danger-bg);
}

.btn-confirm-no {
    background-color: var(--success-green);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-no:hover {
    background-color: #059669;
}

/* =========================================
   10. Toast Notifications & Warnings
   ========================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 40px);
}

.toast {
    background-color: var(--success-green);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    animation: toastSlideIn 0.3s forwards, toastSlideOut 0.3s forwards 2.7s;
}

.toast.error {
    background-color: var(--danger-red);
}

@keyframes toastSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* Duplicate Warning Box */
.duplicate-warning {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #fef3c7;
    gap: 12px;
}

.match-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--text-secondary);
}

.match-info strong {
    color: var(--text-primary);
    font-size: 14px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: white;
}

.btn-edit-match {
    color: #b45309;
    border-color: #fcd34d;
    background-color: #fffbeb;
}

.btn-edit-match:hover {
    background-color: #fef3c7;
}

.hidden {
    display: none !important;
}

/* Custom Sleek Scrollbar for Tables */
.leads-table-container::-webkit-scrollbar,
.client-list-container::-webkit-scrollbar {
    height: 6px;
}

.leads-table-container::-webkit-scrollbar-track,
.client-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.leads-table-container::-webkit-scrollbar-thumb,
.client-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.leads-table-container::-webkit-scrollbar-thumb:hover,
.client-list-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   11. Comprehensive Responsive Media Queries
   ========================================= */
/* Tablet & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
    .main-container {
        margin-top: 70px;
        padding: 0 20px;
    }
}

/* Mobile & Small Tablet Screens (<= 768px) */
@media (max-width: 768px) {
    .top-left-logo {
        position: static;
        width: 44px;
        margin: 16px 0 0 16px;
    }

    .main-container {
        margin: 20px auto 30px;
        padding: 0 16px;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .back-link {
        width: auto;
        align-self: flex-start;
    }

    .form-row,
    .form-row.three-col {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .btn-filter {
        width: 100%;
    }

    .filter-panel {
        position: static;
        max-width: 100%;
        margin-top: 10px;
        box-shadow: var(--shadow-md);
    }

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

    .dashboard-actions {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .action-btn {
        width: 100%;
    }

    .match-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .match-item button {
        align-self: flex-end;
    }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .main-container {
        padding: 0 12px;
    }

    .client-form,
    .leads-table-container,
    .client-list-container {
        padding: 16px 14px;
        border-radius: var(--radius-lg);
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        padding: 12px 16px;
        font-size: 13px;
    }
}
