* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #022174;
    --primary-hover: #031a59;
    --primary-light: #e9eef8;
    --primary-dark: #01164d;

    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-overlay: rgba(0, 0, 0, 0.1);

    /* Border & Shadow */
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Edge highlight pairs brand #011e44 with white in light mode */
    --edge-shadow: 0 0 0 1px rgba(1, 30, 68, 0.12);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    /* Hover helpers (light) */
    --hover-bg: #e6eefc;
    --hover-weak-bg: #edf2f7;

    /* Payment Method Management Styles */
    --payment-method-bg: #ffffff;
    --payment-method-border: #e2e8f0;
    --payment-method-hover: #f8fafc;
    --payment-method-active: #e6f3ff;
    --hover-text: #0f172a;
}

/* Payment Method Management Styles */
.payment-method-row {
    border: 1px solid var(--payment-method-border);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: var(--payment-method-bg);
    transition: all 0.2s ease;
}

.payment-method-row:hover {
    background: var(--payment-method-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.payment-method-row:has(input:checked) {
    background: var(--payment-method-active);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    cursor: pointer;
}

.payment-method-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.payment-method-info {
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}

.payment-method-info small {
    color: var(--text-secondary);
    line-height: 1.4;
}

.configured-badge {
    background: #28a745;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.enabled-badge {
    background: #007bff;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.disabled-badge {
    background: #6c757d;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.not-configured-badge {
    background: #ffc107;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.edit-payment-btn, .configure-payment-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-payment-btn:hover, .configure-payment-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.edit-payment-btn:active, .configure-payment-btn:active {
    transform: translateY(0);
}

/* Payment method checkboxes */
input[name="rental-payment-methods"] {
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

input[name="rental-payment-methods"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Apartment selector styling */
.apartment-selector {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.apartment-selector h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-weight: 600;
}

.apartment-selector p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.apartment-selector select {
    flex: 1;
    min-width: 250px;
    padding: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.apartment-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 33, 116, 0.1);
}

/* Payment methods section */
.payment-methods-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
}

.payment-methods-section h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--text-primary);
    font-weight: 600;
}

.payment-methods-actions {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary:active {
    transform: translateY(0);
}
/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #4a90e2; /* brighter blue for better visibility */
    --primary-hover: #357abd;
    --primary-light: rgba(74, 144, 226, 0.25);
    --primary-dark: #2c5aa0;

    /* Dark grey palette with better contrast */
    --text-primary: #f5f5f5; /* brighter white for better readability */
    --text-secondary: #d4d4d4; /* lighter secondary text */
    --text-muted: #b0b0b0; /* lighter muted text */
    --text-white: #ffffff;

    --bg-primary: #1e1e1e; /* slightly lighter for better contrast */
    --bg-secondary: #0f0f0f; /* darker background */
    --bg-tertiary: #2a2a2a; /* lighter tertiary */
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --border-color: #404040; /* lighter borders for visibility */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.8), 0 4px 6px -2px rgba(0,0,0,0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.9), 0 10px 10px -5px rgba(0,0,0,0.8);
    /* Hover helpers (dark) */
    --hover-bg: rgba(74, 144, 226, 0.25); /* brighter brand-tinted */
    --hover-weak-bg: #333333; /* lighter hover background */
    --hover-text: #f5f5f5; /* brighter hover text */
    /* White edge highlight in dark mode */
    --edge-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.status-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.status-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.status-card {
    min-width: 260px;
    max-width: 320px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.status-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(15, 23, 42, 0.2);
    border-top-color: var(--primary-color);
    animation: spin 0.9s linear infinite;
}

.status-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid transparent;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-message {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.status-overlay.success .status-spinner,
.status-overlay.error .status-spinner {
    display: none;
}

.status-overlay.success .status-icon,
.status-overlay.error .status-icon {
    display: flex;
}

.status-overlay.success .status-icon {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
}

.status-overlay.success .status-icon::before {
    content: '';
    width: 14px;
    height: 24px;
    border-right: 4px solid #16a34a;
    border-bottom: 4px solid #16a34a;
    transform: rotate(45deg);
    margin-top: -6px;
}

.status-overlay.error .status-icon {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

.status-overlay.error .status-icon::before,
.status-overlay.error .status-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 4px;
    background: #dc2626;
    border-radius: 999px;
}

.status-overlay.error .status-icon::before {
    transform: rotate(45deg);
}

.status-overlay.error .status-icon::after {
    transform: rotate(-45deg);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Theme toggle (landlord) */

.theme-toggle-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 8px 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.theme-toggle-header:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.theme-label {
    color: var(--text-primary);
    font-size: 13px;
}

.theme-icon {
    font-size: 16px;
}

.sidemenucss {
    width: 15%;
    background: var(--bg-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sidemenu img {
    width: 100%;
    height: auto;
    max-width: 120px;
    border-radius: var(--border-radius);
}

.menufeatures {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-2xl);
    width: 100%;
    gap: var(--space-sm);
    overflow-y: auto;
    overflow-x: hidden;
}

.page {
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xs) 0;
    gap: var(--space-md);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.page:hover {
    background: var(--hover-weak-bg);
    color: var(--hover-text);
    transform: translateX(2px);
}

.oops {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    background: transparent;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xs) 0;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.oops:hover {
    color: #dc2626;
    background: var(--hover-weak-bg);
    transform: translateX(2px);
}

.active {
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    background: var(--primary-color);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xs) 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.sidelp {
    display: none;
}

.sidelp.actsidelp {
    display: flex;
}


.mainright {
    flex-direction: column;
    width: 85%;
    height: 100vh;
    padding: var(--space-xl);
    overflow: hidden;
    background: var(--bg-secondary);
}

.advertiseright,
.applicationsright,
.rentedright,
.paymenthistoryright {
    flex-direction: column;
    width: 85%;
    height: 100vh;
    padding: var(--space-xl);
    overflow-y: auto;
    background: var(--bg-secondary);
}


.mainright .pagename,
.mainright .layer2lp {
    flex-shrink: 0;
}

.pagename {
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding-bottom: var(--space-xl);
    /* margin-bottom: var(--space-lg); */
}

.pagename .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.pagename h2 {
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.regedacc {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    gap: 12px;
    background: var(--bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.regedacc:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.regedacc p {
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    color: var(--text-primary);
    margin: 0;
}

.searchbar {
    position: relative;
    width: 70%;
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.searchbar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.searchbar input {
    width: 100%;
    font-size: 15px;
    background: transparent;
    border: none;
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    outline: none;
}

.searchbar input::placeholder {
    color: var(--text-muted);
}

/* Removed - conflicts with filter dropdown icon */

/* Filter dropdown container */
.filter-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: var(--space-lg);
}

.filter-dropdown #landlordFilterIcon,
.filter-dropdown #rentedFilterIcon,
.filter-dropdown #paymentFilterIcon {
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.filter-dropdown #landlordFilterIcon:hover,
.filter-dropdown #rentedFilterIcon:hover,
.filter-dropdown #paymentFilterIcon:hover {
    color: var(--primary-color);
    background: var(--hover-weak-bg);
}

.filter-dropdown #landlordFilterIcon.active,
.filter-dropdown #rentedFilterIcon.active,
.filter-dropdown #paymentFilterIcon.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Filter menu dropdown */
.filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.filter-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.filter-option:hover {
    background: var(--hover-weak-bg);
    color: var(--primary-color);
}

.filter-option.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.filter-option i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.filter-option:hover i,
.filter-option.active i {
    color: var(--primary-color);
}

.availistings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    width: 100%;
    margin: var(--space-xl) 0;
}

/* Only landlordListings scrolls; header and searchbar stay fixed when browsing apartments */
#landlordListings {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.outerad {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    height: 420px;
    cursor: pointer;
    padding: 0;
    min-width: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.outerad:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

/* Hover styling based on full-rent status */
.outerad.fully-rented:hover {
    border-color: var(--error-color, #ef4444);
}

.outerad:not(.fully-rented):hover {
    border-color: var(--primary-color);
}

/* Due/overdue unit in Rented tab */
.outerad.outerad-due-unit {
    border-color: var(--error-color, #ef4444) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), var(--shadow-xl) !important;
}

.photo, .photoad {
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    width: 100%;
    height: 260px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Larger photo area on landlord dashboard cards only */
#landlordListings .outerad .photoad {
    height: 300px;
}

/* Remove Tenant button styling */
.removetenantbtn {
	margin-top: var(--space-md);
	display: flex;
	justify-content: flex-end;
}
.removetenantbtn button {
	padding: 8px 12px;
	font-size: .9rem;
	border: 1px solid #e5534b;
	background: #fff;
	color: #e5534b;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .1s ease;
}
.removetenantbtn button:hover {
	background: #e5534b;
	color: #fff;
	transform: translateY(-1px);
}
.removetenantbtn button:active {
	transform: translateY(0);
}

/* Renter details panel (replaces popup) */
.renter-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.renter-details h4 {
    margin: var(--space-md) 0 var(--space-sm) 0;
}
.rd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-lg);
}
.rd-grid > div {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px 12px;
}
.rd-grid .rd-span-2 {
    grid-column: 1 / -1;
}
.rd-attachments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.rd-attachments .attach-box {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    overflow: hidden;
}
.rd-attachments .attach-box img {
    display: block;
    width: 100%;
    height: auto;
}

.photo img,
.photoad img,
.photoad .photo-carousel,
.photoad .pc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.listinfo {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    flex: 1;
}

/* Make list info text bold inside landlord cards */
.listinfo,
.listinfoleft,
.listinforight {
    font-weight: 700;
    color: var(--text-primary);
}

/* Prevent overflow of listing header text */
.listinfoleft {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.listinfoleft > div:first-child,
.listinfoleft > span:first-child {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color, #4CAF50));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inline rating on landlord cards */
.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11px;
}

/* Rating row placed below .listinfo */
.card-rating-below {
    padding: 6px 14px 0 14px;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 12.5px;
}

.card-rating-below .stars-inline {
    font-size: 13px;
}

.card-rating .stars-inline {
    letter-spacing: 0.5px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
}

/* Filled star (★) - Gold */
.card-rating .stars-inline .star-filled {
    color: #FFC107;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.5));
}

/* Empty star (☆) - Grey */
.card-rating .stars-inline .star-empty {
    color: #d0d0d0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}
.card-rating .rating-text {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 10px;
}

/* Bloomed bookmark icon */
.listinforight i.fa-bookmark,
.listinforight .fa-bookmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.2);
}

.listinforight i.fa-bookmark:hover,
.listinforight .fa-bookmark:hover {
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* Enhanced card info styling */
.listinfoleft {
    color: var(--text-primary);
}

.price-location {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
}

.price-location i {
    color: var(--primary-color);
    font-size: 10px;
}

.listinforight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.listinforight > span {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-weight: 600;
}

.listinforight > span:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.editlistbtn,
.deletelistbtn {
    background-color: white;
    border: none;
    padding: 5px;
    /* margin: 3px; */
    border-radius: 0.5rem;
    font-size: 14px;
    cursor: pointer;
}

.editlistbtn:hover,
.deletelistbtn:hover {
    background-color: var(--vivid-azure-light-theme);
    border: 1px solid;
    box-shadow: 0px 4px 0px black;
}

.selectedrightside {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    /* padding: var(--space-xl); */
    overflow-y: auto;
}

.selpagename {
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding-bottom: var(--space-xl);
    /* margin-bottom: var(--space-lg); */
}

.selpagename h2 {
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.pagenav,
.pagenav1 {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.pagenav button,
.pagenav1 button {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.pagenav button:hover,
.pagenav1 button:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.sidetoside {
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
    width: 100%;
    justify-content: space-between;
    margin: var(--space-xl) 0;
}

.rightside {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 60%;
}

.leftside {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 40%;
}



.detailcard {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    margin-bottom: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.detailcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #4CAF50));
    border-radius: 16px 16px 0 0;
}

.detailcard:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.detailcard h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detailcard h3::before {
    content: '🏠';
    font-size: 1.2rem;
}


.card h3 {
    text-align: center;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    gap: var(--space-md);
}

.detail-row:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-input {
    flex: 2;
    border: 2px solid var(--border-color);
    outline: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Stack label on top for payment methods so tall content never overlaps */
.payment-methods-row {
    flex-direction: column;
    align-items: stretch;
}

.payment-methods-row .detail-label {
    min-width: 0;
    margin-bottom: 4px;
}

.payment-methods-row .detail-input {
    width: 100%;
}

/* Remove number input spinners */
.detail-input[type="number"]::-webkit-outer-spin-button,
.detail-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.detail-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.detail-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-1px);
}

.detail-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

textarea.detail-input {
    min-height: 80px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.edit-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    min-width: 50px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.edit-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px) scale(1.05);
}

.reqop {
    border: 2px solid var(--border-color);
    background-color: var(--bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: var(--space-sm);
}

.reqop:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Checkbox styling for requirements */
.detail-input label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    position: relative;
}

.detail-input label:hover {
    color: var(--hover-text);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.detail-input input[type="checkbox"] {
    margin-right: var(--space-sm);
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.detail-input input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.detail-input input[type="checkbox"]:checked {
    transform: scale(1.05);
}

/* Payment method specific styling */
.detail-input input[name="payment-methods"] {
    pointer-events: auto;
}

.detail-input input[name="payment-methods"]:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Configured payment method indicator */
.configured-indicator {
    color: var(--success-color) !important;
    font-weight: bold !important;
    font-size: 1.1rem;
    margin-left: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Enhanced payment method labels */
.detail-input label:has(input[name="payment-methods"]:checked) {
    background: var(--success-light);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-input label:has(input[name="payment-methods"]:checked):hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Payment method configuration status */
.detail-input label:has(input[name="payment-methods"]:not(:checked)) {
    opacity: 0.7;
    border: 1px solid transparent;
}

.detail-input label:has(input[name="payment-methods"]:not(:checked)):hover {
    opacity: 1;
    border: 1px solid var(--primary-color);
}

/* Loading state for payment method configuration */
.payment-method-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.payment-method-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Success state animation */
.payment-method-success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px var(--success-color); }
    100% { transform: scale(1); }
}

/* File input styling */
.detail-input[type="file"] {
    padding: var(--space-sm);
    border: 2px dashed var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-input[type="file"]:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.detail-input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: var(--space-sm);
    transition: background 0.3s ease;
}

.detail-input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary-hover);
}

/* Responsive Design for Detail Card */
/* @media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: var(--space-sm);
    }
    
    .detail-input {
        width: 100%;
    }
    
    .edit-btn {
        align-self: flex-end;
        width: auto;
    }
    
    .detailcard {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    .detailcard h3 {
        font-size: 1.3rem;
        margin-bottom: var(--space-lg);
    }
} */


.availphtsouter {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50vh;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    padding-top: 12px;
}
.availrntphtsouter {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50vh;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.availadphtsouter {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50vh;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

/* Panorama 360 View Section */
.panorama-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.panorama-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 var(--space-md) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.panorama-section h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.panorama-upload-area {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
}

.panorama-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.panorama-upload-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.panorama-upload-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.panorama-upload-btn i {
    font-size: 1.2rem;
}

.panorama-hint {
    margin-top: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.panorama-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
}

/* Responsive panorama list */
@media (max-width: 768px) {
    .panorama-list {
        gap: var(--space-md);
    }
    
    .panorama-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .panorama-item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .panorama-section {
        padding: var(--space-md);
    }
    
    .panorama-upload-btn {
        width: 100%;
        justify-content: center;
    }
}

.panorama-item {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: var(--space-lg);
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
    align-items: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .panorama-item {
        flex-direction: column;
        padding: var(--space-md);
    }
}

.panorama-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #667eea, var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panorama-item:hover::before {
    opacity: 1;
}

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

.panorama-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15),
                0 0 20px rgba(2, 33, 116, 0.2);
    border-color: var(--primary-color);
}

.panorama-item-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-md);
    flex: 1;
    min-width: 0;
}

.panorama-item-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
}

.panorama-item-label input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.panorama-item-label input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.panorama-item-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.panorama-item-actions {
    display: flex;
    gap: var(--space-sm);
}

.panorama-view-btn,
.panorama-delete-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.panorama-view-btn::before,
.panorama-delete-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.panorama-view-btn:hover::before,
.panorama-delete-btn:hover::before {
    width: 200px;
    height: 200px;
}

.panorama-view-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(2, 33, 116, 0.3);
}

.panorama-view-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 33, 116, 0.5);
}

.panorama-view-btn i,
.panorama-delete-btn i {
    z-index: 1;
}

.panorama-delete-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.panorama-delete-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.panorama-thumbnail {
    width: 280px;
    min-width: 280px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .panorama-thumbnail {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }
}

.panorama-thumbnail:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(2, 33, 116, 0.2);
}

.panorama-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.panorama-thumbnail:hover img {
    transform: scale(1.1) rotate(1deg);
}

.panorama-thumbnail::after {
    content: '🔍 Click to view 360°';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    backdrop-filter: blur(5px);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

.panorama-thumbnail:hover::after {
    opacity: 1;
}

/* 360 Viewer Modal - Enhanced Design */
.panorama-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 30, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.panorama-viewer-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.panorama-viewer-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(2, 33, 116, 0.3),
                inset 0 0 100px rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: containerSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes containerSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.panorama-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.panorama-viewer-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.panorama-viewer-title i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.panorama-viewer-label-edit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.panorama-viewer-label-edit i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.panorama-viewer-label-edit input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.panorama-viewer-label-edit input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(2, 33, 116, 0.1);
}

.panorama-label-save-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.panorama-label-save-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.panorama-label-save-btn:active {
    transform: translateY(0);
}

.panorama-viewer-close {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panorama-viewer-close:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
}

.panorama-viewer-close:active {
    transform: translateY(0) scale(0.98);
}

.panorama-viewer-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    touch-action: none; /* Prevent default touch behaviors */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.panorama-viewer-canvas:active {
    cursor: grabbing;
}

.panorama-viewer-controls {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: var(--space-md) var(--space-lg);
    border-radius: 20px;
    display: flex;
    gap: var(--space-md);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(2, 33, 116, 0.3);
}

.panorama-viewer-controls button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(2, 33, 116, 0.3);
    position: relative;
    overflow: hidden;
}

.panorama-viewer-controls button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.panorama-viewer-controls button:hover::before {
    width: 300px;
    height: 300px;
}

.panorama-viewer-controls button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(2, 33, 116, 0.5);
}

.panorama-viewer-controls button:active {
    transform: translateY(-1px) scale(0.98);
}

.panorama-viewer-controls button i {
    font-size: 1.1rem;
    z-index: 1;
}

.panorama-viewer-hint {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 40, 0.85) 100%);
    backdrop-filter: blur(15px);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
    animation: hintPulse 4s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

@keyframes hintPulse {
    0%, 100% { 
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    10%, 85% { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    95% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

.rphotos {
    background-color: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: 1rem;
    width: 97%;
    height: 95%;
}

.photos {
    background-color: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: 1rem;
    width: 97%;
    height: 85%;
}

.photos img,
.rphotos img,
.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.savechanges {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    width: 100%;
    padding: 24px;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.savechanges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #4CAF50));
    border-radius: 16px 16px 0 0;
}

.savechanges h3 {
    text-align: center;
    border-bottom: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.saveadchanges {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    width: 100%;
    padding: 24px;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.saveadchanges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #4CAF50));
    border-radius: 16px 16px 0 0;
}


.savechangesbtns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.savechangesbtns button {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

#adDeleteBtn:hover {
    background: #dc2626;
    color: var(--text-white);
    border-color: #dc2626;
}

.savechangesbtns button:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* ---------------- Responsive Layout Improvements ---------------- */
@media (max-width: 1200px) {
    .availistings { grid-template-columns: repeat(3, 1fr); }
    .revret { padding: 0 60px; }
}

/* Laptop/Desktop at ~110% zoom comfort band */
@media (max-width: 1366px) and (min-width: 1200px) {
    .availistings { grid-template-columns: repeat(3, 1fr); }
    .outerad { height: 360px; }
    .photo { height: 240px; }
    .pagename { padding-bottom: var(--space-lg); }
    .pagename h2 { font-size: 1.1rem; }
    .searchbar { width: 80%; }
    .revret { padding: 0 48px; }
    .rightside, .leftside { gap: var(--space-md); }
    .availphtsouter, .availrntphtsouter, .availadphtsouter { height: 50vh; }
}

@media (max-width: 992px) {
    .availistings { grid-template-columns: repeat(2, 1fr); }
    .sidetoside { flex-direction: column; gap: var(--space-lg); }
    .rightside, .leftside { width: 100%; }
    .availphtsouter, .availrntphtsouter, .availadphtsouter { height: 45vh; }
    .boxchat { height: 45vh; }
    .revret { padding: 0 40px; }
}

@media (max-width: 768px) {
    .sidemenucss { width: 22%; }
    .mainright, .advertiseright, .applicationsright, .rentedright, .paymenthistoryright { width: 78%; padding: var(--space-lg); }
    .pagename { padding-bottom: var(--space-lg); }
    .regedacc { width: auto; gap: var(--space-xs); }
    .regedacc p { font-size: 14px; }
    .searchbar { width: 100%; }
    .availistings { grid-template-columns: 1fr; }
    .outerad { height: 360px; }
    .photo { height: 240px; }
    .revret { padding: 0 16px; }
    .score { font-size: 28px; }
    .stars { font-size: 22px; }
    .review-box { padding: 10px; }
    .button-bar { flex-direction: column; }
}

@media (max-width: 576px) {
    body { flex-direction: column; }
    .mainright, .advertiseright, .applicationsright, .rentedright, .paymenthistoryright { width: 100%; padding: var(--space-md); }
    .pagename h2 { font-size: 1rem; }
    .regedacc { display: none; }
    .outerad { height: 340px; }
    .photo { height: 220px; }
    .availphtsouter, .availrntphtsouter, .availadphtsouter { height: 40vh; }
    .boxchat { height: 40vh; }
    .renters-box { padding: var(--space-md); }
}

/* Buttons polish */
.edit-btn,
#dashChangePhotoBtn,
.approve-app,
.decline-app,
.closeAppDetBtn,
.openattachbtn,
.openattachbtn1,
.savechangesbtns button {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.edit-btn:active,
#dashChangePhotoBtn:active,
.approve-app:active,
.decline-app:active,
.closeAppDetBtn:active,
.openattachbtn:active,
.openattachbtn1:active,
.savechangesbtns button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.photoad {
    background: var(--bg-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: var(--border-radius);
    width: 100%;
    height: 200px;
    border: 1px dashed var(--border-color);
    transition: all 0.2s ease;
}


.availadphtsouter input {
    display: none;
}

.photoad i,
.photosadd i {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.photoad:hover i,
.photosadd:hover i {
    color: var(--hover-text);
    transform: scale(1.1);
}


.renters-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-xl);
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.renters-box:hover, .detailcard:hover, .availphtsouter:hover, .boxchat:hover, 
.review-card:hover, .payment-history:hover{
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Attachment modal action buttons */
.attach-modal-actions .attach-dl-btn:hover,
.attach-modal-actions .attach-close-btn:hover{
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.attach-modal-actions .attach-dl-btn,
.attach-modal-actions .attach-close-btn{
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Reuse the same button style outside attachment modal */
.attach-dl-btn,
.attach-close-btn{
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.attach-dl-btn:hover,
.attach-close-btn:hover{
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.renters-box h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.renter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.renter:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.renter span {
    font-weight: bold;
    font-size: 15px;
    color: var(--text-primary);
}

.clientmessage {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s ease;
}

.clientmessage:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.clientmessage.revealed {
    color: var(--text-primary);
    font-style: italic;
}

.approve-app, .decline-app {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.approve-app {
    background: #10b981;
    color: white;
}

.approve-app:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.decline-app {
    background: #ef4444;
    color: white;
}

.decline-app:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.chat-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* box-shadow: 0px 4px 0px black; */
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 95%;
}

/* Floating Chat Bubble - Messenger Style */
.chat-bubble-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0084ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    border: 3px solid var(--bg-primary);
}

.chat-bubble-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.6);
}

.chat-bubble-trigger i {
    color: white;
    font-size: 28px;
}

.chat-bubble-trigger .unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--bg-primary);
}

.floating-chat-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 550px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

.floating-chat-container.show {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-chat-header {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.floating-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-chat-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.floating-chat-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.floating-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.floating-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.floating-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-chat-input {
    padding: 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

.floating-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.floating-chat-input input:focus {
    border-color: #0084ff;
}

.floating-chat-send {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.floating-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 132, 255, 0.4);
}

.floating-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Conversation List Styles */
.conversation-list {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.conversation-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-item:hover {
    background: var(--bg-primary);
}

.conversation-item.unread {
    background: rgba(0, 132, 255, 0.05);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.conversation-details {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-size: 15px;
}

.conversation-preview {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.conversation-time {
    font-size: 12px;
    color: var(--text-muted);
}

.conversation-unread-badge {
    background: #0084ff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.chat-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-conversations-view,
.chat-messages-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.boxchat {
    padding: 8px 13px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    width: 100%;
    height: 50vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: none;
}

.boxchat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #4CAF50));
    border-radius: 16px 16px 0 0;
}

.specimessages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    min-height: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.msg {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    margin: 4px 0;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: messageSlide 0.2s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg.renter {
    background: #e4e6eb;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg.landlord {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    margin-left: auto;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

[data-theme="dark"] .msg.renter {
    background: #3a3b3c;
    color: var(--text-primary);
}

.msg.rent-due-reminder {
    max-width: 92%;
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
    background: linear-gradient(135deg, #fff8e6 0%, #ffefd0 100%);
    border: 1px solid #e8c96b;
    color: #5c4813;
    font-size: 13px;
    font-weight: 500;
}

[data-theme="dark"] .msg.rent-due-reminder {
    background: linear-gradient(135deg, #3d3520 0%, #2d2818 100%);
    border-color: #8b7430;
    color: #f5e6b3;
}

/* Input Area */
.input-area {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 0 0 12px 12px;
    position: relative;
    z-index: 1;
}

.input-area input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-right: 10px;
}

.input-area button {
    background: #00bfff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.input-area button:hover {
    background: #0099cc;
}


.useracc,
.outlog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.useraccdet {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.useraccwbg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    background: var(--bg-primary);
    width: 100%;
    min-height: 400px;
}

.useraccwbg > p:first-of-type {
    color: var(--text-primary) !important;
    font-size: 20px !important;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 4px;
}

.useraccwbg > p:nth-of-type(2) {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Dark mode fixes for user account popup */
[data-theme="dark"] .useraccdet {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .useraccwbg {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .useraccdesc p {
    color: var(--text-primary) !important;
    font-size: 15px !important;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9;
}

[data-theme="dark"] .chngmail button,
[data-theme="dark"] .userchc button {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
}

[data-theme="dark"] .chngmail button:hover,
[data-theme="dark"] .userchc button:hover {
    background: var(--primary-hover) !important;
}

.accdetclos {
    width: 32px;
    height: 32px;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    cursor: pointer;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.accdetclos:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.accdetclos svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
    transition: fill 0.2s ease;
}

.accdetclos:hover svg {
    fill: var(--text-white);
}

.circleuserpfp {
    padding: var(--space-lg) 0;
    color: var(--text-secondary);
}

.chngmail button,
.userchc button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-xs);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.chngmail button:hover,
.userchc button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.useraccdesc p {
    margin: var(--space-md);
    text-align: center;
    color: var(--text-muted);
    cursor: default;
    line-height: 1.5;
}

.userchc {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.regedacc p {
    font-weight: bold;
    font-size: 20px;
    display: inline-block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.lgosenten {
    font-weight: bold;
    text-align: center;
    width: 50%;
    padding: 15px 0px;
    font-size: 18px;
    color: var(--text-primary);
}

.logoutBtn button,
.logoutCancelBtn button {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    margin: 4px;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.logoutBtn button:hover,
.logoutCancelBtn button:hover {
    background: var(--primary-hover);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.userlogoutdet {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 350px;
    max-height: 60vh;
    overflow-y: auto;
}

.userlogoutwbg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    background: var(--bg-primary);
    width: 100%;
    min-height: 300px;
}

/* Dark mode fixes for logout popup */
[data-theme="dark"] .userlogoutdet {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .userlogoutwbg {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .lgosenten {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .logoutBtn button,
[data-theme="dark"] .logoutCancelBtn button {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .logoutBtn button:hover,
[data-theme="dark"] .logoutCancelBtn button:hover {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-color: var(--primary-color) !important;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-blue-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    width: 100%;
    min-height: 200px;
}

.modal-content input {
    width: 100%;
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.error-message {
    color: #dc2626;
    margin-bottom: var(--space-md);
    display: none;
    font-size: 14px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Chat Header Styles */
.chat-header {
    background: var(--bg-primary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-sm);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.chat-title i {
    font-size: 18px;
    color: var(--text-primary);
}

.chat-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.chat-with {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 400;
}

#landlordName,
#clientName {
    font-weight: 600;
    color: var(--text-primary);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Toast Notification Stack */
#notificationContainer {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 11000;
    pointer-events: none;
}

@media (max-width: 576px) {
    #notificationContainer {
        left: 12px;
        right: 12px;
        top: 12px;
    }
}

.message-notification {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 14px;
    box-shadow: var(--shadow-lg), 0 12px 30px rgba(0, 0, 0, 0.18);
    border-left: 6px solid var(--primary-color);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.18s ease, opacity 0.18s ease;
    overflow: hidden;
    pointer-events: auto;
}

.message-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.message-notification.hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
}

.message-notification.success { border-left-color: #16a34a; }
.message-notification.error { border-left-color: #ef4444; }
.message-notification.warning { border-left-color: #f59e0b; }
.message-notification.info { border-left-color: var(--primary-color); }

.notification-content {
    display: flex;
    gap: 12px;
    padding: 14px 14px 12px 14px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: inherit;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.notification-icon i {
    font-size: 18px;
}

.notification-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-category {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--hover-weak-bg);
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--text-primary);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    height: 32px;
    width: 32px;
    transition: background 0.15s ease, color 0.15s ease;
}

.notification-close:hover {
    background: var(--hover-weak-bg);
    color: var(--text-primary);
}

.notification-close i {
    pointer-events: none;
}

.notification-progress {
    height: 3px;
    background: var(--primary-color);
    opacity: 0.9;
    animation-name: toastProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.message-notification.success .notification-progress { background: #16a34a; }
.message-notification.error .notification-progress { background: #ef4444; }
.message-notification.warning .notification-progress { background: #f59e0b; }

.message-notification.paused .notification-progress {
    animation-play-state: paused;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 768px) {
    .message-notification {
        width: 100%;
    }
}

.photosadd {
    background-color: lightgray;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: 1rem;
    width: 97%;
    height: 90%;
    cursor: pointer;
}


/* Pending receipts box (above review-card) */
.pending-receipts-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.pending-receipts-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.pending-receipts-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.pending-receipts-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pending-receipts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}
.pending-receipt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.pending-receipt-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 0.9rem;
}
.pending-receipt-ref { font-weight: 600; color: var(--primary-color); }
.pending-receipt-date { color: var(--text-secondary); }
.pending-receipt-amount { font-weight: 600; color: var(--text-primary); }
.pending-receipt-status {
    text-transform: capitalize;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(234, 179, 8, 0.2);
    color: #b45309;
    font-size: 0.8rem;
}
.pending-receipt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pending-receipt-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.pending-receipt-review-btn:hover { opacity: 0.9; }
.pending-receipt-reject-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--error-color, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.pending-receipt-reject-btn:hover { opacity: 0.9; }
.pending-receipts-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Transaction history box (below review-card) – same as client, without Pay now */
.transaction-history-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg, 16px);
    padding: var(--space-lg, 20px);
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.06));
    display: flex;
    flex-direction: column;
    gap: var(--space-md, 14px);
    min-height: 200px;
}
.transaction-history-title {
    margin: 0 0 var(--space-xs, 6px) 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm, 8px);
}
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs, 4px);
    flex: 1;
    min-height: 80px;
}
.transaction-item {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1.2fr 1fr auto;
    gap: var(--space-sm, 8px);
    padding: var(--space-sm, 8px) 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    align-items: center;
}
.transaction-item.transaction-header {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--border-color);
}
.transaction-item .tx-amount,
.transaction-item .tx-date,
.transaction-item .tx-ref,
.transaction-item .tx-payment {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-item .tx-view {
    white-space: nowrap;
    overflow: visible;
    justify-self: end;
}
.transaction-empty {
    padding: var(--space-md, 14px);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Receipt review modal */
.receipt-review-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.receipt-review-modal {
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.receipt-review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.receipt-review-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.receipt-review-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0 4px;
    line-height: 1;
}
.receipt-review-modal-close:hover { color: var(--text-primary); }
.receipt-review-modal-body {
    padding: 20px;
    overflow-y: auto;
}
.receipt-review-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.receipt-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.receipt-review-label { color: var(--text-muted); }
.receipt-review-image-wrap {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    min-height: 120px;
}
.receipt-review-image {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
}
.receipt-review-fallback {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.receipt-review-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.receipt-review-paid-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color, #22c55e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.receipt-review-paid-btn:hover { opacity: 0.9; }
.receipt-review-close-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}
.receipt-review-close-btn:hover { background: var(--border-color); }

.review-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    width: 100%;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #4CAF50));
    border-radius: 16px 16px 0 0;
}

.revret {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 100px;
    position: relative;
    z-index: 1;
}

.rating-header {
    font-weight: bold;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.stars {
    font-size: 28px;
    margin-top: 5px;
}
.stars .star,
.stars .fa-star {
    color: #cfcfcf;
}
.stars .star.selected,
.stars .fa-star.selected {
    color: #FFD700;
}

.score {
    font-size: 40px;
    font-weight: bold;
    color: var(--text-primary);
}

.out-of {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sort-section {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 10px 0;
    font-weight: bold;
}

.hide-review {
    color: var(--vivid-azure-light-theme);
    font-size: 14px;
}

.review-box {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.review-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.review-header {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.review-stars {
    font-size: 14px;
}
.review-stars .star-filled { color: #FFD700; }
.review-stars .star-empty { color: #cfcfcf; }

.review-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
    padding: 5px;
}

.toggle-review-vis {
    margin-left: auto;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.toggle-review-vis:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.payment-history {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-history::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.payment-history::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--accent-color, #4CAF50);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 0;
}

.payment-history h3 {
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
}

.payment-history-content {
    padding: var(--space-lg);
}

.paymenthistoryright .payment-history {
    margin-top: 0;
    width: 100%;
    max-width: none;
}

.income-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.income-card, .payment-count-card {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.income-card:hover, .payment-count-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.filter-controls select {
    padding: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-controls button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.filter-controls button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.filter-controls button:active {
    transform: translateY(0);
}

.payment-method-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#historyTable tbody tr {
    transition: background-color 0.2s ease;
}

#historyTable tbody tr:hover {
    background: var(--primary-light);
    cursor: pointer;
}

#historyTable td:last-child {
    font-weight: 600;
    color: var(--success-color);
}

/* Responsive adjustments for payment history */
@media (max-width: 768px) {
    .income-summary {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .filter-controls {
        padding: var(--space-sm);
    }
    
    #historyTable {
        font-size: 0.85rem;
    }
    
    #historyTable th,
    #historyTable td {
        padding: var(--space-sm);
    }
}

@media (max-width: 576px) {
    .income-summary {
        margin-bottom: var(--space-lg);
    }
    
    #historyTable {
        font-size: 0.8rem;
    }
    
    .payment-method-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* Sort Dropdown Styles */
.sort-dropdown { position: relative; }
.sort-dropdown .sd-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
}
.sort-dropdown .sd-btn:hover { border-color: var(--primary-color); background: var(--hover-weak-bg); }
.sort-dropdown .sd-prefix { color: var(--text-secondary); font-size: .9rem; font-weight: 500; }
.sort-dropdown .sd-label { font-weight: 600; }
.sort-dropdown .sd-caret { color: var(--text-secondary); }
.sort-dropdown .sd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-height: 300px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    display: none;
    z-index: 1000;
    overflow-y: auto;
}
.sort-dropdown.open .sd-menu { display: block; }
.sort-dropdown .sd-menu li {
    list-style: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-primary);
}
.sort-dropdown .sd-menu li:hover { background: var(--hover-bg); }
.sort-dropdown .sd-menu li.selected { color: var(--primary-color); font-weight: 600; }

#historyTable {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

#historyTable thead {
    background: var(--bg-tertiary);
}

#historyTable th,
#historyTable td {
    padding: 8px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--light-gray-light-theme);
}

#historyTable tbody tr:hover {
    background: var(--primary-light);
}

#paymentPopupModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    /* Ensure it's positioned relative to viewport */
    transform: translateZ(0);
}

#paymentPopupModal.show {
    opacity: 1;
}

#paymentPopupTitle {
    margin-bottom: 10px;
}

.paymentModal {
    background: var(--bg-primary);
    padding: 24px 32px;
    border-radius: 12px;
    min-width: 350px;
    max-width: 90vw;
    position: relative;
    margin: auto;
    transform: translateZ(0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

#closePaymentPopup {
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
}

.payModalname,
.payModalnum,
.payModalqr {
    margin-bottom: var(--space-md);
}

.payModalname label,
.payModalnum label,
.payModalqr label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.payModalname input,
.payModalnum input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.payModalname input:focus,
.payModalnum input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-1px);
}

.payModalname input::placeholder,
.payModalnum input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.payModalqr input[type="file"] {
    width: 100%;
    padding: var(--space-sm);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.payModalqr input[type="file"]:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payModalqr small {
    display: block;
    margin-top: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.paySave {
    text-align: right;
}

.paySave button {
    color: var(--text-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    border: none;
    background: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.paySave button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.paySave button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.paySave button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.paymentdetspop {
    background-color: var(--vivid-azure-light-theme);
    padding: 15px 13px 13px 13px;
    border-radius: 12px;
}

#dashChangePhotoBtn {
    background: var(--primary-color);
    color:var(--text-white);
    border: none;
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0px;
}

#dashChangePhotoBtn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.approve-app,
.decline-app {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

/* Specific styling for approve button */
.approve-app {
    background: var(--bg-primary);
    border-color: #22c55e;
    color: #22c55e;
}

.approve-app:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Specific styling for decline button */
.decline-app {
    background: var(--bg-primary);
    border-color: #ef4444;
    color: #ef4444;
}

.decline-app:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.closeAppDetBtn:hover,
.openattachbtn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--text-white);
}

/* Ensure proper hover text color for light mode elements */
[data-theme="light"] .detail-input label:hover {
    color: var(--hover-text) !important;
}

.closeAppDetBtn {
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.closeAppDetBtn:hover {
    background: var(--primary-color);
    color: white;
}

.addbox:hover,
.whobox:hover, .attach-box:hover {
    border-color: var(--primary-color);
}

.addbox {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    grid-column: 1 / -1;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.whobox {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}
.openattachbtn1 {
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-color);
    word-break: break-all;
    justify-content: center;
    display: flex;
    transition: all 0.2s ease;
}

.openattachbtn1:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.openattachbtn {
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-color);
    word-break: break-all;
    justify-content: center;
    display: flex;
    transition: all 0.2s ease;
}

.openattachbtn:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.attach-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border 0.2s ease;
    background: var(--bg-primary);
    /* smooth hover effect */
}
.status-row1{
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
}
.status-row{
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
}
.listinforight1{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
/* Edge highlight application (brand blue + white) */
.edge-elevated,
.outer,
.outerad,
.edit-btn,
#dashChangePhotoBtn,
.approve-app,
.decline-app,
.closeAppDetBtn,
.openattachbtn,
.openattachbtn1,
.savechangesbtns button,
.availphtsouter,
.availrntphtsouter,
.availadphtsouter,
.renter-details,
.rd-grid > div,
.renters-box,
.renter,
.chat-box,
.boxchat,
.review-card,
.payment-history,
#historyTable,
.useraccdet,
.useraccwbg,
.logoutBtn button,
.logoutCancelBtn button,
.userlogoutdet,
.modal-blue-content,
.detailcard,
.detail-row,
.reqop,
.photoad,
.photosadd,
.attach-box,
.rphotos,
.photos,
.openattachbtn1,
.openattachbtn,
.payment-methods-section,
.payment-method-row {
    box-shadow: var(--edge-shadow), var(--shadow-sm);
}

/* Payment Methods Section for Rented Apartments */
.payment-methods-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.rental-payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-method-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.payment-method-row:hover {
  background: var(--hover-weak-bg);
  border-color: var(--primary-color);
}

.payment-method-row label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

.payment-method-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
}

.payment-method-label i {
  width: 20px;
  color: var(--primary-color);
}

.payment-method-info {
  margin-left: 38px;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--primary-color);
}

.payment-method-info small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.payment-method-info .account-name,
.payment-method-info .account-number {
  font-weight: 600;
  color: var(--text-primary);
}

.payment-methods-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.payment-methods-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.payment-methods-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.payment-methods-actions .btn-primary {
  background: var(--primary-color);
  color: var(--text-white);
}

.payment-methods-actions .btn-primary:hover {
  background: var(--primary-hover);
}

.payment-methods-actions .btn-secondary {
  background: #28a745;
  color: var(--text-white);
}

.payment-methods-actions .btn-secondary:hover {
  background: #218838;
}

/* Responsive adjustments for payment methods */
@media (max-width: 768px) {
  .payment-methods-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .payment-methods-actions .btn {
    justify-content: center;
  }
}

/* Apartment Selector Styles */
.apartment-selector {
  box-shadow: var(--edge-shadow), var(--shadow-sm);
}

.payment-methods-management {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

#apartmentSelector {
  transition: border-color 0.2s ease;
}

#apartmentSelector:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(2, 33, 116, 0.1);
}

#loadApartmentPaymentMethods {
  transition: all 0.2s ease;
}

#loadApartmentPaymentMethods:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.apartment-info {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.apartment-info::before {
  content: "📍";
  font-size: 0.8rem;
}

/* Dropdown text color fixes for dark mode */
[data-theme="dark"] #apartmentSelector,
[data-theme="dark"] #paymentMethodFilter,
[data-theme="dark"] .payment-method-filter,
[data-theme="dark"] .filter-controls select {
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] #apartmentSelector option,
[data-theme="dark"] #paymentMethodFilter option,
[data-theme="dark"] .payment-method-filter option,
[data-theme="dark"] .filter-controls select option {
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
}

/* Ensure all select elements have proper dark mode styling */
[data-theme="dark"] select {
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] select option {
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
}

/* Payment method badges and configure buttons */
.configured-badge {
  background: #28a745 !important;
  color: white !important;
  font-size: 0.7rem !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  margin-left: 8px !important;
}

.not-configured-badge {
  background: #ffc107 !important;
  color: #000 !important;
  font-size: 0.7rem !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  margin-left: 8px !important;
}

.configure-payment-btn {
  background: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.configure-payment-btn:hover {
  background: var(--primary-hover) !important;
}

[data-theme="dark"] .configured-badge {
  background: #28a745 !important;
  color: white !important;
}

[data-theme="dark"] .not-configured-badge {
  background: #ffc107 !important;
  color: #000 !important;
}

[data-theme="dark"] .configure-payment-btn {
  background: var(--primary-color) !important;
  color: white !important;
}

/* Responsive adjustments for apartment selector */
@media (max-width: 768px) {
  .apartment-selector > div {
    flex-direction: column;
    align-items: stretch;
  }
  
  #apartmentSelector {
    min-width: auto;
    width: 100%;
  }
  
  #loadApartmentPaymentMethods {
    justify-content: center;
    margin-top: var(--space-sm);
  }
}



/* Payment Method Header and Edit Button Styles */
.payment-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.payment-method-header label {
  flex: 1;
  margin: 0;
}

.edit-payment-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-width: 32px;
  height: 32px;
  justify-content: center;
}

.edit-payment-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Dynamic hover colors based on button state */
.edit-payment-btn[style*="background: var(--primary-color)"]:hover,
.edit-payment-btn[style*="background:#022174"]:hover {
  background: var(--primary-hover) !important;
}

.edit-payment-btn[style*="background: #28a745"]:hover,
.edit-payment-btn[style*="background:#28a745"]:hover {
  background: #218838 !important;
}

.edit-payment-btn i {
  font-size: 0.9rem;
}

/* Update payment method row to accommodate the new header */
.payment-method-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

/* Responsive adjustments for payment method header */
@media (max-width: 480px) {
  .payment-method-header {
    gap: var(--space-sm);
  }
  
  .edit-payment-btn {
    min-width: 28px;
    height: 28px;
    padding: var(--space-xs);
  }
  
  .edit-payment-btn i {
    font-size: 0.8rem;
  }
}

/* No payment methods message styling */
.no-payment-methods {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.no-payment-methods:hover {
  border-color: var(--primary-color);
  background: var(--hover-weak-bg);
}

.no-payment-methods h4 {
  color: var(--text-primary);
  font-weight: 600;
}

.no-payment-methods p {
  line-height: 1.5;
}

/* ===== NO RENTED APARTMENT MESSAGE - PREMIUM STYLING ===== */

.no-rented-message {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.no-rented-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb, 59, 130, 246), 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.no-apartment-illustration {
    position: relative;
    margin-bottom: var(--space-lg);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.house-icon {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    animation: bounce 2s ease-in-out infinite;
}

.search-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.6;
    animation: search 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes search {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.no-apartment-content {
    position: relative;
    z-index: 1;
}

.no-apartment-content h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-apartment-content p {
    margin: 0 0 var(--space-lg) 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.browse-apartments-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color, #4CAF50));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb, 59, 130, 246), 0.3);
    text-decoration: none;
}

.browse-apartments-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb, 59, 130, 246), 0.4);
}

/* Unit status pills (Occupied / Available) - larger, more appealing */
.unit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.unit-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.unit-pill-available {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.unit-pill-occupied {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.unit-pill-due {
    border: 2px solid #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
}
.unit-pill-toggle {
    cursor: pointer;
    font-family: inherit;
    appearance: none;
}
.unit-pill-toggle:active {
    transform: scale(0.98);
}
.unit-status-grid {
    gap: 12px !important;
    margin-top: 12px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .no-apartment-illustration {
        height: 80px;
    }
    
    .house-icon {
        font-size: 3rem;
    }
    
    .search-icon {
        font-size: 1.5rem;
    }
    
    .no-apartment-content h4 {
        font-size: 1.1rem;
    }
    
    .no-apartment-content p {
        font-size: 0.9rem;
    }
}