/* StartAi.PropertyContact Module Styles */
.spc-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.spc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.spc-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spc-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.spc-icon {
    font-size: 28px;
}

.spc-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.spc-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    vertical-align: middle;
}

.spc-actions {
    display: flex;
    gap: 10px;
}

.spc-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.spc-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spc-tab:hover {
    color: #0f172a;
}

.spc-tab-active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
}

.spc-tab-content {
    display: none;
}

.spc-tab-content-active {
    display: block;
}

.spc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.spc-input, .spc-select, .spc-textarea {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.spc-input:focus, .spc-select:focus, .spc-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.spc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.spc-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.spc-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.spc-btn-primary:hover {
    background: #1d4ed8;
}

.spc-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.spc-btn-secondary:hover {
    background: #e2e8f0;
}

.spc-btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.spc-btn-danger:hover {
    background: #fecaca;
}

.spc-btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.spc-table-responsive {
    overflow-x: auto;
}

.spc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.spc-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.spc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.spc-table tr:hover td {
    background: #f8fafc;
}

.spc-role-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.spc-role-owner {
    background: #fef3c7;
    color: #92400e;
}

.spc-role-seller {
    background: #dbeafe;
    color: #1e40af;
}

.spc-role-buyer {
    background: #dcfce7;
    color: #166534;
}

.spc-role-landlord {
    background: #ede9fe;
    color: #5b21b6;
}

.spc-role-tenant {
    background: #ffedd5;
    color: #9a3412;
}

.spc-primary-star {
    color: #eab308;
    font-weight: bold;
    margin-right: 4px;
}

.spc-status-active {
    color: #16a34a;
    font-weight: 600;
}

.spc-status-inactive {
    color: #94a3b8;
}

.spc-phone-masked {
    font-family: monospace;
    font-weight: 600;
    color: #475569;
}

.spc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.spc-policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spc-policy-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.spc-policy-val {
    font-size: 26px;
    font-weight: 700;
    color: #2563eb;
}

.spc-policy-lbl {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Modals */
.spc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spc-modal-content {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.spc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.spc-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.spc-close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
}

.spc-close-btn:hover {
    color: #0f172a;
}

.spc-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.spc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.spc-form-group {
    margin-bottom: 14px;
}

.spc-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.spc-req {
    color: #ef4444;
}

.spc-form-row {
    display: flex;
    gap: 10px;
}

.spc-alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.spc-alert-warning {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.spc-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.spc-text-center { text-align: center; }
.spc-text-muted { color: #94a3b8; }

.spc-timeline {
    border-left: 2px solid #e2e8f0;
    margin-left: 10px;
    padding-left: 16px;
}

.spc-timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.spc-timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
}

.spc-timeline-header {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.spc-timeline-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.spc-timeline-note {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 4px;
}
