/**
 * Property Membership System - Frontend Styles
 * Member-facing pages (registration, dashboards, invoices, credits)
 */

/* ========================================
   GENERAL STYLES
======================================== */
.mem-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid;
    border-radius: 4px;
    background: #fff;
}

.mem-notice-info {
    border-color: #0073aa;
    background: #e5f5fa;
}

.mem-notice-error {
    border-color: #d63638;
    background: #fbe4e5;
}

.mem-notice-warning {
    border-color: #dba617;
    background: #fcf3cd;
}

.mem-notice-success {
    border-color: #00a32a;
    background: #edfaef;
}

.mem-notice h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.mem-notice p {
    margin: 5px 0;
}

/* ========================================
   BUTTONS
======================================== */
.mem-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mem-btn .dashicons {
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 5px;
}

.mem-btn-primary {
    background: #2271b1;
    color: #fff;
}

.mem-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.mem-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.mem-btn-secondary:hover {
    background: #dcdcde;
    color: #2c3338;
}

.mem-btn-danger {
    background: #d63638;
    color: #fff;
}

.mem-btn-danger:hover {
    background: #b32d2e;
    color: #fff;
}

.mem-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.mem-btn:disabled,
.mem-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   FORMS
======================================== */
.mem-form {
    max-width: 800px;
    margin: 0 auto;
}

.mem-form-section {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
}

.mem-form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
    font-size: 18px;
}

.mem-form-group {
    margin-bottom: 20px;
}

.mem-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mem-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.required {
    color: #d63638;
}

.mem-form-group input[type="text"],
.mem-form-group input[type="email"],
.mem-form-group input[type="tel"],
.mem-form-group input[type="password"],
.mem-form-group input[type="number"],
.mem-form-group textarea,
.mem-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.mem-form-group input:focus,
.mem-form-group textarea:focus,
.mem-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mem-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #646970;
}

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

.mem-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.mem-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.mem-form-helper {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.mem-form-helper p {
    margin: 5px 0;
    font-size: 14px;
}

.mem-form-helper strong {
    color: #2271b1;
}

.mem-form-helper ol {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.mem-form-helper li {
    margin: 5px 0;
    font-size: 13px;
}

.mem-form-helper a {
    color: #2271b1;
    text-decoration: none;
}

.mem-form-helper a:hover {
    text-decoration: underline;
}

.mem-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 25px;
}

.mem-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.mem-message.success {
    background: #edfaef;
    border-left: 4px solid #00a32a;
    color: #00a32a;
}

.mem-message.error {
    background: #fbe4e5;
    border-left: 4px solid #d63638;
    color: #d63638;
}

/* ========================================
   REGISTRATION PAGE - SIMPLIFIED
======================================== */

/* Container */
.mem-register {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.mem-register-header {
    text-align: center;
    margin-bottom: 40px;
}

.mem-register-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #1d2327;
}

.mem-register-header p {
    font-size: 16px;
    color: #646970;
    margin: 0;
}

/* Form */
.mem-register-form {
    max-width: 100%;
}

/* Sections */
.mem-section {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Add extra spacing before Contact Details section */
.mem-section:nth-of-type(2) {
    margin-top: 30px;
}

.mem-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
    font-size: 18px;
    color: #1d2327 !important;
}

/* Form Fields */
//* Modern Floating Label Fields */
.mem-field-floating {
    position: relative;
    margin-bottom: 24px;
}

.mem-field-floating:last-child {
    margin-bottom: 0;
}

.mem-field-floating input[type="text"],
.mem-field-floating input[type="email"],
.mem-field-floating input[type="tel"],
.mem-field-floating input[type="password"] {
    width: 100%;
    padding: 20px 16px 8px 16px;
    border: 2px solid #dcdcde !important;
    border-radius: 4px;
    font-size: 16px;
    background: #fff !important;
    background-color: #fff !important;
    color: #1d2327 !important;
    transition: all 0.2s ease;
}

.mem-field-floating label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 16px;
    color: #646970 !important;
    transition: all 0.2s ease;
    pointer-events: none;
    background: #fff !important;
    background-color: #fff !important;
    padding: 0 4px;
}

.mem-field-floating input:focus + label,
.mem-field-floating input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 500;
    color: #2271b1 !important;
    background: #fff !important;
    background-color: #fff !important;
}

.mem-field-floating input:hover {
    border-color: #8c8f94 !important;
}

.mem-field-floating input:focus {
    outline: none;
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1;
}

.mem-field-floating small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #646970 !important;
}

.mem-field-floating .required {
    color: #d63638;
}

/* Section backgrounds - explicit light mode */
.mem-section {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mem-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
    font-size: 18px;
    color: #1d2327 !important;
}

/* Legacy field styling for non-floating fields */
.mem-field {
    margin-bottom: 20px;
}

.mem-field:last-child {
    margin-bottom: 0;
}

.mem-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.mem-field input[type="text"],
.mem-field input[type="email"],
.mem-field input[type="tel"],
.mem-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #1d2327;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mem-field input:hover {
    border-color: #8c8f94;
}

.mem-field input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mem-field small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #646970;
}

/* Two column row */
.mem-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkbox */
.mem-checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.mem-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

/* Required indicator */
.required {
    color: #d63638;
}

/* Honeypot (hidden) */
.mem-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Actions */
.mem-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Button */
.mem-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mem-btn-primary {
    background: #2271b1;
    color: #fff;
}

.mem-btn-primary:hover {
    background: #135e96;
}

.mem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message */
.mem-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.mem-message.success {
    display: block;
    background: #edfaef;
    border-left: 4px solid #00a32a;
    color: #00a32a;
}

.mem-message.error {
    display: block;
    background: #fbe4e5;
    border-left: 4px solid #d63638;
    color: #d63638;
}

/* Footer */
.mem-register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dcdcde;
}

/* Success Screen (after registration) */
.mem-success-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.mem-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #00a32a;
    color: white;
    font-size: 48px;
    line-height: 80px;
    border-radius: 50%;
}

.mem-success-container h2 {
    color: #00a32a;
    margin: 0 0 10px 0;
}

.mem-next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mem-next-steps h3 {
    color: #0066cc;
    margin: 0 0 20px 0;
    text-align: center;
}

.mem-next-steps ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
}

.mem-next-steps ol li {
    counter-increment: steps;
    position: relative;
    padding: 15px 0 15px 50px;
    margin-bottom: 15px;
    border-left: 2px solid #0066cc;
}

.mem-next-steps ol li:before {
    content: counter(steps);
    position: absolute;
    left: -15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

.mem-next-steps ol li strong {
    display: block;
    color: #0066cc;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .mem-row {
        grid-template-columns: 1fr;
    }
    
    .mem-register-header h2 {
        font-size: 24px;
    }
}
/* ========================================
   IMAGE UPLOAD
======================================== */
.mem-image-upload-area {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    user-select: none;
}

.mem-image-upload-area:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.mem-upload-placeholder {
    pointer-events: none;
}

.mem-upload-placeholder .dashicons {
    font-size: 48px;
    color: #646970;
    margin-bottom: 10px;
    display: block;
}

.mem-upload-placeholder p {
    margin: 10px 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.mem-upload-placeholder small {
    display: block;
    color: #646970;
    font-size: 12px;
}

.mem-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mem-image-preview-item {
    position: relative;
    padding-top: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #dcdcde;
}

.mem-image-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mem-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(214, 54, 56, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

/* ========================================
   DASHBOARD LAYOUTS
======================================== */
.mem-seller-dashboard,
.mem-premium-dashboard,
.mem-invoices-page,
.mem-credits-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.mem-dashboard-header,
.mem-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.mem-dashboard-header h2,
.mem-page-header h2 {
    font-size: 28px;
    margin: 0;
}

.member-tier-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   STATISTICS CARDS
======================================== */
.mem-dashboard-stats,
.mem-invoice-stats,
.mem-credit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mem-stat-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mem-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f0f0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .dashicons {
    font-size: 24px;
    color: #646970;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #646970;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #1d2327;
    line-height: 1;
}

.stat-sublabel {
    font-size: 12px;
    color: #646970;
    margin-top: 3px;
}

/* Stat card color variants */
.stat-card-balance.positive .stat-icon {
    background: #d5f4e6;
}

.stat-card-balance.positive .stat-icon .dashicons {
    color: #00a32a;
}

.stat-card-balance.positive .stat-value {
    color: #00a32a;
}

.stat-card-balance.low .stat-icon {
    background: #fcf3cd;
}

.stat-card-balance.low .stat-icon .dashicons {
    color: #dba617;
}

.stat-card-balance.low .stat-value {
    color: #dba617;
}

.stat-card-balance.negative .stat-icon {
    background: #fbe4e5;
}

.stat-card-balance.negative .stat-icon .dashicons {
    color: #d63638;
}

.stat-card-balance.negative .stat-value {
    color: #d63638;
}

.stat-icon-pending {
    background: #fcf3cd;
}

.stat-icon-pending .dashicons {
    color: #dba617;
}

.stat-icon-live {
    background: #d5f4e6;
}

.stat-icon-live .dashicons {
    color: #00a32a;
}

.stat-icon-invoices {
    background: #e5f5fa;
}

.stat-icon-invoices .dashicons {
    color: #0073aa;
}

/* ========================================
   PROPERTIES GRID
======================================== */
.mem-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.mem-property-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mem-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending_review,
.status-pending {
    background: #fcf3cd;
    color: #8a6116;
}

.status-active {
    background: #d5f4e6;
    color: #007017;
}

.status-archived {
    background: #f0f0f1;
    color: #646970;
}

.status-sold {
    background: #e5f5fa;
    color: #0073aa;
}

.property-content {
    padding: 20px;
}

.property-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.property-address {
    color: #646970;
    font-size: 14px;
    margin: 5px 0;
}

.property-address .dashicons {
    font-size: 16px;
    vertical-align: middle;
}

.property-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 13px;
    color: #646970;
}

.property-meta .dashicons {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 3px;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #2271b1;
    margin: 10px 0;
}

.property-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.property-status-text {
    color: #646970;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   EMPTY STATES
======================================== */
.mem-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 2px dashed #dcdcde;
    border-radius: 8px;
}

.mem-empty-state .dashicons {
    font-size: 64px;
    color: #c3c4c7;
    margin-bottom: 20px;
}

.mem-empty-state p {
    color: #646970;
    font-size: 16px;
    margin-bottom: 20px;
}

/* ========================================
   DASHBOARD SECTIONS
======================================== */
.mem-dashboard-section {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.mem-dashboard-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
}

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

.section-header h3 {
    margin: 0;
}

.mem-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.mem-link:hover {
    text-decoration: underline;
}

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

/* ========================================
   ACTIVITY & INVOICE LISTS
======================================== */
.mem-activity-list,
.mem-invoice-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mem-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: background 0.2s;
}

.mem-activity-item:hover {
    background: #f0f0f1;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-credit {
    background: #d5f4e6;
}

.icon-credit .dashicons {
    color: #00a32a;
}

.icon-debit {
    background: #fbe4e5;
}

.icon-debit .dashicons {
    color: #d63638;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.activity-date {
    font-size: 12px;
    color: #646970;
}

.activity-amount {
    font-size: 16px;
    font-weight: bold;
}

.amount-positive {
    color: #00a32a;
}

.amount-negative {
    color: #d63638;
}

.mem-invoice-item-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.invoice-icon {
    width: 35px;
    height: 35px;
    background: #e5f5fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invoice-icon .dashicons {
    color: #0073aa;
}

.invoice-content {
    flex: 1;
}

.invoice-number {
    font-weight: 600;
    margin-bottom: 2px;
}

.invoice-date {
    font-size: 12px;
    color: #646970;
}

.invoice-status {
    margin: 0 10px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: #fcf3cd;
    color: #8a6116;
}

.status-badge.status-paid {
    background: #d5f4e6;
    color: #007017;
}

.status-badge.status-overdue {
    background: #fbe4e5;
    color: #b32d2e;
}

.status-badge.invoiced {
    background: #e5f5fa;
    color: #0073aa;
}

.invoice-amount {
    font-weight: bold;
    color: #1d2327;
}

/* ========================================
   TABLES
======================================== */
.mem-table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.mem-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.mem-table thead {
    background: #f0f0f1;
}

.mem-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #646970;
}

.mem-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.mem-table tr:hover {
    background: #f9f9f9;
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.task-info strong {
    font-size: 14px;
}

.task-info small {
    font-size: 12px;
    color: #646970;
}

/* ========================================
   FILTERS
======================================== */
.mem-filters {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   INFO BOXES
======================================== */
.mem-payment-info,
.mem-credit-info {
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.mem-payment-info h3,
.mem-credit-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}

.payment-detail {
    display: flex;
    gap: 10px;
}

.payment-detail strong {
    min-width: 140px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-item .dashicons {
    font-size: 24px;
    color: #2271b1;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .mem-dashboard-header,
    .mem-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mem-dashboard-stats,
    .mem-invoice-stats,
    .mem-credit-stats {
        grid-template-columns: 1fr;
    }
    
    .mem-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .mem-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .mem-form-row {
        grid-template-columns: 1fr;
    }
    
    .mem-table {
        font-size: 12px;
    }
    
    .mem-table th,
    .mem-table td {
        padding: 10px;
    }
}

.mem-empty-text {
    color: #646970;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.mem-dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}
/* ========================================
   REGISTRATION SUCCESS MESSAGE
======================================== */
.mem-success-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.mem-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #00a32a;
    color: white;
    font-size: 48px;
    line-height: 80px;
    border-radius: 50%;
    font-weight: bold;
}

.mem-success-container h2 {
    color: #00a32a;
    margin: 0 0 10px 0;
}

.mem-success-container > p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

.mem-next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mem-next-steps h3 {
    color: #0066cc;
    margin: 0 0 20px 0;
    text-align: center;
}

.mem-next-steps ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
}

.mem-next-steps ol li {
    counter-increment: steps;
    position: relative;
    padding: 15px 0 15px 50px;
    margin-bottom: 15px;
    border-left: 2px solid #0066cc;
}

.mem-next-steps ol li:before {
    content: counter(steps);
    position: absolute;
    left: -15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

.mem-next-steps ol li strong {
    display: block;
    color: #0066cc;
    font-size: 16px;
    margin-bottom: 5px;
}

.mem-bulk-option {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    text-align: center;
}

.mem-bulk-option strong {
    display: block;
    color: #0066cc;
    font-size: 16px;
    margin-bottom: 10px;
}

.mem-bulk-option a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.mem-bulk-option a:hover {
    text-decoration: underline;
}

.mem-help-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.mem-help-text p {
    margin: 0;
    color: #666;
}

/* ========================================
   DARK MODE SUPPORT
======================================== */
@media (prefers-color-scheme: dark) {
    /* General backgrounds and borders */
    .mem-notice,
    .mem-form-section,
    .mem-register-container,
    .mem-login-container,
    .mem-stat-card,
    .mem-property-card,
    .mem-invoice-card,
    .mem-table,
    .mem-filters,
    .mem-payment-info,
    .mem-credit-info,
    .mem-success-container {
        background: #1e1e1e;
        border-color: #3e3e3e;
        color: #e0e0e0;
    }
    
    /* Form inputs */
    .mem-form-group input[type="text"],
    .mem-form-group input[type="email"],
    .mem-form-group input[type="tel"],
    .mem-form-group input[type="password"],
    .mem-form-group input[type="number"],
    .mem-form-group textarea,
    .mem-select,
    .mem-field input[type="text"],
    .mem-field input[type="email"],
    .mem-field input[type="tel"],
    .mem-field input[type="password"],
    .mem-field-floating input[type="text"],
    .mem-field-floating input[type="email"],
    .mem-field-floating input[type="tel"],
    .mem-field-floating input[type="password"] {
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
        border-color: #3e3e3e !important;
        color: #e0e0e0 !important;
    }
    
    .mem-form-group input:focus,
    .mem-form-group textarea:focus,
    .mem-select:focus,
    .mem-field input:focus,
    .mem-field-floating input:focus {
        border-color: #4a9eff !important;
        box-shadow: 0 0 0 1px #4a9eff;
    }
    
    .mem-field-floating input:focus {
        box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
    }
    
    /* Labels and headings */
    .mem-form-group label,
    .mem-form-section h3,
    .mem-register-header h2,
    .mem-login-header h2,
    .mem-dashboard-header h2,
    .mem-page-header h2,
    .mem-stat-card h4,
    .task-info strong,
    .activity-title,
    .invoice-number,
    .invoice-amount,
    .mem-field label {
        color: #e0e0e0 !important;
    }
    
    .mem-field-floating label {
        color: #a0a0a0 !important;
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
    }
    
    .mem-field-floating input:focus + label,
    .mem-field-floating input:not(:placeholder-shown) + label {
        color: #4a9eff !important;
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
    }
    
    /* Section backgrounds for registration form */
    .mem-section {
        background: #1e1e1e !important;
        background-color: #1e1e1e !important;
        border-color: #3e3e3e !important;
    }
    
    .mem-section h3 {
        color: #e0e0e0 !important;
        border-bottom-color: #3e3e3e !important;
    }
    
    /* Secondary text */
    .mem-form-group small,
    .activity-date,
    .invoice-date,
    .task-info small,
    .info-item p,
    .mem-register-header p,
    .mem-login-header p,
    .mem-help-text p,
    .mem-field small,
    .mem-field-floating small {
        color: #a0a0a0;
    }
    
    /* Tables */
    .mem-table thead {
        background: #2a2a2a;
    }
    
    .mem-table th {
        color: #a0a0a0;
    }
    
    .mem-table td {
        border-bottom-color: #3e3e3e;
    }
    
    .mem-table tr:hover {
        background: #2a2a2a;
    }
    
    /* Activity items */
    .mem-activity-item,
    .mem-invoice-item-compact {
        background: #2a2a2a;
    }
    
    .mem-activity-item:hover {
        background: #333333;
    }
    
    /* Helper boxes */
    .mem-form-helper {
        background: #2a3a4a;
        border-left-color: #4a9eff;
    }
    
    .mem-form-helper strong {
        color: #4a9eff;
    }
    
    /* Next steps section */
    .mem-next-steps {
        background: #2a2a2a;
    }
    
    .mem-next-steps h3 {
        color: #4a9eff;
    }
    
    .mem-next-steps ol li {
        border-left-color: #4a9eff;
    }
    
    .mem-next-steps ol li:before {
        background: #4a9eff;
    }
    
    .mem-next-steps ol li strong {
        color: #4a9eff;
    }
    
    /* Bulk option */
    .mem-bulk-option {
        background: #2a2a2a;
        border-color: #4a9eff;
    }
    
    .mem-bulk-option strong,
    .mem-bulk-option a {
        color: #4a9eff;
    }
    
    /* Payment details */
    .payment-details {
        background: #2a2a2a;
    }
    
    /* Image upload area */
    .mem-image-upload-area {
        background: #2a2a2a;
        border-color: #3e3e3e;
    }
    
    .mem-image-upload-area:hover {
        border-color: #4a9eff;
        background: #2a3a4a;
    }
    
    /* Notice backgrounds - adjusted for dark mode */
    .mem-notice-info {
        background: #1a2a3a;
        border-color: #4a9eff;
    }
    
    .mem-notice-success {
        background: #1a2a1a;
        border-color: #00a32a;
    }
    
    .mem-notice-warning {
        background: #2a2a1a;
        border-color: #dba617;
    }
    
    .mem-notice-error {
        background: #2a1a1a;
        border-color: #d63638;
    }
    
    /* Message boxes */
    .mem-message.success {
        background: #1a2a1a;
        border-color: #00a32a;
        color: #00d636;
    }
    
    .mem-message.error {
        background: #2a1a1a;
        border-color: #d63638;
        color: #ff6b6b;
    }
    
    /* Pricing notice */
    .mem-pricing-notice {
        background: #1a2a3a;
        border-color: #4a9eff;
    }
    
    .mem-price {
        color: #4a9eff;
    }
    
    /* Success container */
    .mem-success-container h2 {
        color: #00d636;
    }
    
    .mem-success-container > p {
        color: #e0e0e0;
    }
    
    /* Empty state text */
    .mem-empty-text {
        color: #a0a0a0;
    }
}

/* ========================================
   DARK MODE - Registration Form
======================================== */

[data-scheme="dark"] .mem-register-header h2 {
    color: #e0e0e0;
}

[data-scheme="dark"] .mem-register-header p {
    color: #a0a0a0;
}

[data-scheme="dark"] .mem-section {
    background: #1e1e1e;
    border-color: #3e3e3e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-scheme="dark"] .mem-section h3 {
    color: #e0e0e0;
    border-bottom-color: #3e3e3e;
}

[data-scheme="dark"] .mem-field label {
    color: #e0e0e0;
}

[data-scheme="dark"] .mem-field-floating label {
    color: #a0a0a0;
}

[data-scheme="dark"] .mem-field-floating input:focus + label,
[data-scheme="dark"] .mem-field-floating input:not(:placeholder-shown) + label {
    color: #4a9eff;
}

[data-scheme="dark"] .mem-field input[type="text"],
[data-scheme="dark"] .mem-field input[type="email"],
[data-scheme="dark"] .mem-field input[type="tel"],
[data-scheme="dark"] .mem-field input[type="password"],
[data-scheme="dark"] .mem-field-floating input[type="text"],
[data-scheme="dark"] .mem-field-floating input[type="email"],
[data-scheme="dark"] .mem-field-floating input[type="tel"],
[data-scheme="dark"] .mem-field-floating input[type="password"] {
    background: #2a2a2a;
    border-color: #3e3e3e;
    color: #e0e0e0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-scheme="dark"] .mem-field input:hover,
[data-scheme="dark"] .mem-field-floating input:hover {
    border-color: #4e4e4e;
}

[data-scheme="dark"] .mem-field input:focus,
[data-scheme="dark"] .mem-field-floating input:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
}

[data-scheme="dark"] .mem-field small,
[data-scheme="dark"] .mem-field-floating small {
    color: #a0a0a0;
}

[data-scheme="dark"] .mem-register-footer {
    border-top-color: #3e3e3e;
}

[data-scheme="dark"] .mem-success-container {
    background: #1e1e1e;
}

[data-scheme="dark"] .mem-success-container h2 {
    color: #00d636;
}

[data-scheme="dark"] .mem-success-container > p {
    color: #e0e0e0;
}

[data-scheme="dark"] .mem-next-steps {
    background: #2a2a2a;
}

[data-scheme="dark"] .mem-next-steps h3 {
    color: #4a9eff;
}

[data-scheme="dark"] .mem-next-steps ol li {
    border-left-color: #4a9eff;
}

[data-scheme="dark"] .mem-next-steps ol li:before {
    background: #4a9eff;
}

[data-scheme="dark"] .mem-next-steps ol li strong {
    color: #4a9eff;
}

[data-scheme="dark"] .mem-message.success {
    background: #1a2a1a;
    color: #00d636;
}

[data-scheme="dark"] .mem-message.error {
    background: #2a1a1a;
    color: #ff6b6b;
}