/* assets/css/components.css */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    gap: 0.5rem;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-main); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    background: var(--bg-main);
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
}
td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}
tr:hover td { background-color: rgba(0,0,0,0.02); }

/* Status Badges */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-new { background: #dcfce7; color: #166534; }
.badge-interested { background: #dbeafe; color: #1e40af; }
.badge-followup { background: #fef9c3; color: #854d0e; }
.badge-closed { background: #f3f4f6; color: #374151; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { cursor: pointer; opacity: 0.5; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-main);
}
.form-input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* Map Container */
#map { height: 400px; border-radius: var(--radius); margin-top: 1rem; border: 1px solid var(--border); }
