.spf-dash {
    display: flex;
    min-height: 600px;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Sidebar */
.spf-dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #0f1c3f;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spf-dash-brand {
    color: #98784d;
    font-size: 18px;
    font-weight: 700;
    padding: 0 12px;
}

.spf-dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spf-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #b7c0d8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.spf-dash-nav-item:hover {
    background: rgba(152, 120, 77, 0.15);
    color: #ffffff;
}

.spf-dash-nav-item.active {
    background: #98784d;
    color: #ffffff;
}

.spf-dash-nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.spf-dash-nav-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

/* Content panel */
.spf-dash-content {
    flex: 1;
    padding: 32px;
    min-width: 0;
}

.spf-dash-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
}

.spf-dash-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.spf-dash-content-header .spf-dash-title {
    margin-bottom: 0;
}

/* Board stats */
.spf-dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.spf-dash-stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spf-dash-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #98784d;
}

.spf-dash-stat-label {
    font-size: 13px;
    color: #888;
}

/* Buttons */
.spf-dash-btn-primary,
.spf-dash-btn-outline,
.spf-dash-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.spf-dash-btn-primary {
    background: #98784d;
    color: #ffffff;
}

.spf-dash-btn-primary:hover,
.spf-dash-btn-primary:focus,
.spf-dash-btn-primary:active {
    background: #7e6640;
    color: #ffffff !important;
}

.spf-dash-btn-outline {
    background: #ffffff;
    color: #555;
    border: 1px solid #dbdbdb;
}

.spf-dash-btn-danger {
    background: #e74c3c;
    color: #ffffff;
}

.spf-dash-btn-danger:hover,
.spf-dash-btn-danger:focus,
.spf-dash-btn-danger:active {
    background: #c0392b;
    color: #ffffff !important;
}

.spf-dash-btn-full {
    width: 100%;
}

/* Table (My Properties) */
.spf-dash-table-wrap {
    background: #ffffff;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spf-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spf-dash-table th {
    text-align: left;
    padding: 14px 16px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #f0f0f0;
}

.spf-dash-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f4;
    color: #2c3e50;
}

.spf-dash-table-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.spf-dash-table-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.spf-dash-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f4f4f4;
    color: #666;
}

.spf-dash-status-publish {
    background: #eaf7ed;
    color: #27a844;
}

.spf-dash-status-pending {
    background: #fdf3e3;
    color: #b8860b;
}

.spf-dash-status-draft {
    background: #f0f0f0;
    color: #888;
}

.spf-dash-table-actions {
    display: flex;
    gap: 8px;
}

.spf-dash-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    padding: 4px;
    line-height: 1;
}

.spf-dash-empty-state {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #777;
}

.spf-dash-pagination {
    margin-top: 16px;
    display: flex;
    gap: 6px;
}

.spf-dash-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    background: #ffffff;
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

.spf-dash-pagination .page-numbers.current {
    background: #98784d;
    color: #ffffff;
}

/* Delete confirmation modal */
.spf-dash-delete-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.spf-dash-delete-modal.open {
    display: flex !important;
}

.spf-dash-delete-modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
}

.spf-dash-delete-modal-box h3 {
    margin: 0 0 8px;
    color: #2c3e50;
}

.spf-dash-delete-modal-box p {
    margin: 0 0 20px;
    color: #777;
    font-size: 14px;
}

.spf-dash-delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Forms (Profile, Auth) */
.spf-dash-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spf-dash-field-group {
    margin-bottom: 18px;
}

.spf-dash-field-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.spf-dash-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background: #fcfcfc;
    font-size: 14px;
}

.spf-dash-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.spf-dash-notice-success {
    background: #eaf7ed;
    color: #27a844;
}

.spf-dash-notice-error {
    background: #fdeaea;
    color: #e74c3c;
}

.spf-dash-notice-info {
    background: #f8f3ec;
    color: #7e6640;
}

/* [shaheen_login_register] when already logged in - a small icon link
   instead of a text notice, so it drops cleanly into a tight header/nav slot. */
.spf-auth-logged-in-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #98784d;
    color: #ffffff;
    text-decoration: none;
}

.spf-auth-logged-in-icon:hover,
.spf-auth-logged-in-icon:focus {
    background: #7e6640;
    color: #ffffff !important;
}

.spf-auth-logged-in-icon svg {
    fill: currentColor;
}

/* [shaheen_login_register layout="modal"] - trigger link + popup */
.spf-auth-modal-trigger {
    color: #98784d;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.spf-auth-modal-trigger:hover {
    color: #7e6640;
}

.spf-auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.spf-auth-modal.open {
    display: flex !important;
}

.spf-auth-modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.spf-auth-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.spf-auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* Auth screen (logged-out) */
.spf-dash-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 20px;
}

.spf-dash-auth-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* layout="compact" - [shaheen_login_register layout="compact"], for a narrow
   Elementor popup or column instead of a full page section. */
.spf-dash-auth.spf-dash-auth-compact {
    min-height: 0;
    padding: 0;
    display: block;
}

.spf-dash-auth-compact .spf-dash-auth-box {
    max-width: none;
    padding: 20px;
    box-shadow: none;
    border-radius: 8px;
}

.spf-dash-auth-compact .spf-dash-auth-brand {
    font-size: 16px;
    margin-bottom: 16px;
}

.spf-dash-auth-compact .spf-dash-auth-tabs {
    margin-bottom: 14px;
}

.spf-dash-auth-compact .spf-dash-field-group {
    margin-bottom: 12px;
}

.spf-dash-auth-brand {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #98784d;
    margin-bottom: 24px;
}

.spf-dash-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.spf-dash-auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0 0 12px;
    font-size: 15px;
    color: #888;
    cursor: pointer;
    position: relative;
}

.spf-dash-auth-tab.active {
    color: #98784d;
    font-weight: 600;
}

.spf-dash-auth-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #98784d;
}

.spf-dash-auth-panel {
    display: none;
}

.spf-dash-auth-panel.active {
    display: block;
}

/* Board: daily views chart */
.spf-dash-chart-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spf-dash-chart-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px;
}

.spf-dash-chart-canvas {
    width: 100%;
    display: block;
}

/* Leads & CRM table */
.spf-dash-lead-contact a {
    color: #98784d;
    text-decoration: none;
}

.spf-dash-lead-message {
    max-width: 220px;
    color: #666;
    font-size: 13px;
}

.spf-dash-lead-status-select {
    padding: 6px 10px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 13px;
    background: #fcfcfc;
}

/* Favorites grid */
.spf-dash-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.spf-dash-property-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spf-dash-property-card-thumb-link {
    display: block;
}

.spf-dash-property-card-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.spf-dash-property-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.spf-dash-property-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spf-dash-property-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.spf-dash-property-card-price {
    font-size: 13px;
    color: #98784d;
    font-weight: 600;
}

/* Favorites & Searches: subtitle + saved searches list */
.spf-dash-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin: 32px 0 16px;
}

.spf-dash-saved-searches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spf-dash-saved-search-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spf-dash-saved-search-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.spf-dash-saved-search-summary {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spf-dash-saved-search-date {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 782px) {
    .spf-dash {
        flex-direction: column;
    }

    .spf-dash-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }

    .spf-dash-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .spf-dash-nav-logout {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .spf-dash-content {
        padding: 20px;
    }
}
