/* START.AI Property Commission Console Styles */
.startai-property-commission {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
}

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

.spc-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.spc-badge-version {
    font-size: 0.8rem;
    background: #3b82f6;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
}

.spc-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

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

/* Stats Cards */
.spc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.spc-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.spc-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}

.spc-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.spc-stat-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

.spc-text-success { color: #10b981; }
.spc-text-warning { color: #f59e0b; }
.spc-text-danger { color: #ef4444; }

/* Tabs */
.spc-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.spc-tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.spc-tab-btn:hover {
    color: #2563eb;
}

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

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

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

/* Card */
.spc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

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

.spc-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}

.spc-card-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.spc-card-body {
    padding: 20px;
}

/* Overview Info Box */
.spc-dashboard-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .spc-dashboard-overview {
        grid-template-columns: 1fr;
    }
}

.spc-info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 4px;
}

.spc-info-box h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #1e40af;
}

.spc-info-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #1e3a8a;
    line-height: 1.6;
}

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

.spc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

.spc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

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

/* Buttons */
.spc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.spc-btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.spc-btn-primary { background: #2563eb; color: #fff; }
.spc-btn-primary:hover { background: #1d4ed8; }

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

.spc-btn-success { background: #10b981; color: #fff; }
.spc-btn-success:hover { background: #059669; }

.spc-btn-danger { background: #ef4444; color: #fff; }
.spc-btn-danger:hover { background: #dc2626; }

/* Badges */
.spc-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.spc-badge-success { background: #d1fae5; color: #065f46; }
.spc-badge-warning { background: #fef3c7; color: #92400e; }
.spc-badge-danger { background: #fee2e2; color: #991b1b; }
.spc-badge-info { background: #dbeafe; color: #1e40af; }

/* Inputs */
.spc-input, .spc-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
}

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

.spc-input-sm {
    padding: 4px 8px;
    width: 80px;
}

/* Modals */
.spc-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spc-modal-dialog {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    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: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.spc-modal-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.spc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.spc-modal-body {
    padding: 20px;
}

.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;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.spc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Skeletons */
.spc-skeleton-line {
    height: 16px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: spc-pulse 1.5s infinite;
}

.spc-skeleton-shimmer {
    height: 32px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: spc-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes spc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast */
.spc-toast-container {
    margin-bottom: 14px;
}

.spc-toast {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.spc-toast-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.spc-toast-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
