/* Admin Dashboard Styles */
:root {
    --primary-color: #2563eb;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--sidebar-text);
    font-size: 0.9rem;
}

/* Property Selector Widget */
.property-selector-widget {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-selector-widget label {
    display: block;
    font-size: 0.75rem;
    color: var(--sidebar-text);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-selector-widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;  /* WHITE TEXT */
    font-size: 0.95rem;
    cursor: pointer;
}

.property-selector-widget select option {
    background: #1e293b;  /* Dark background for dropdown options */
    color: #ffffff;       /* White text for options */
}

.property-selector-widget select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
}

/* Sidebar Navigation - NEW STRUCTURE */
.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    list-style: none;
}

/* Nav items work with both old and new structure */

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    margin: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.nav-item .nav-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.nav-item span:not(.nav-icon):not(.badge) {
    flex: 1;
}

.nav-item .badge {
    margin-left: auto;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--sidebar-text);
    color: var(--sidebar-text);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-footer .logout-btn {
    width: 100%;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: 1400px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Login Section */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    background: #eff6ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recent Activity */
.recent-activity {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.recent-activity h2 {
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Messages Section */
.filters {
    display: flex;
    gap: 10px;
}

.filters select {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border-color);
}

.message-card.urgent {
    border-left-color: var(--danger-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.message-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.message-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.urgency-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.urgency-badge.urgent {
    background: #fee2e2;
    color: var(--danger-color);
}

.urgency-badge.normal {
    background: #fef3c7;
    color: #d97706;
}

.urgency-badge.low {
    background: #dbeafe;
    color: var(--primary-color);
}

.message-body {
    margin-bottom: 15px;
    line-height: 1.6;
}

.message-attachments {
    margin: 15px 0;
}

.attachment-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.attachment-item img {
    max-width: 150px;
    border-radius: 8px;
    cursor: pointer;
}

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

.status-select {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Properties Grid */
/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.property-card {
    background: var(--surface);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.property-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.property-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface) 0%, #f0f9ff 100%);
}

.property-card.active::before {
    content: "Currently Viewing";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-card h3 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.property-info {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.property-info p {
    margin-bottom: 8px;
}

.property-info strong {
    color: var(--text-primary);
}

.property-access-code {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.property-access-code p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.access-url {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.access-url code {
    color: var(--primary-color);
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

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

.qr-code-section {
    margin-top: 15px;
    text-align: center;
}

.qr-code-section button {
    margin-bottom: 10px;
}

.qr-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

.property-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.property-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Property Form */
.property-form-container {
    margin-bottom: 30px;
}

.property-form-container.hidden {
    display: none;
}

.form-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.form-card h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Property Switcher in Header */
.property-switcher {
    background: var(--background);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.property-switcher label {
    font-weight: 600;
    color: var(--text-primary);
}

.property-switcher select {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.property-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Resource Editor */
.resource-editor {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.resource-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.editor-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-title-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.resource-title-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Troubleshooting Editor */
.troubleshooting-editor {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.troubleshooting-editor select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.steps-container {
    margin: 20px 0;
}

.step-item {
    background: var(--background);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.step-item input,
.step-item textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
}

.step-item textarea {
    min-height: 80px;
    font-family: inherit;
}

/* Settings Section */
.settings-group {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.settings-group h2 {
    margin-bottom: 10px;
}

.settings-group > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-options input[type="text"],
.settings-options input[type="email"],
.settings-options input[type="tel"] {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.settings-options select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-left: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-danger:hover {
    background: #b91c1c;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Utility Classes */
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .logo h2,
    .subtitle,
    .nav-item span,
    .user-name,
    .logout-btn {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.property-form {
    padding: 30px;
}

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

.property-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.property-form input[type="text"],
.property-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.property-form input[type="text"]:focus,
.property-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions .btn {
    flex: 1;
}

/* Enhanced Property Cards */
.property-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.property-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.property-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.theme-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.theme-standard {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.theme-luxury {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.theme-beach {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.property-info {
    margin: 15px 0;
    color: var(--text-secondary);
}

.property-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.property-info code {
    background: var(--background);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

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

.property-actions .btn {
    flex: 1;
    min-width: 100px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* DEFAULT PROPERTY STAR ICON STYLES */
/* Add this to admin-styles.css */

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

.property-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
}

.default-star {
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    padding: 5px;
}

.default-star:not(.active) {
    opacity: 0.3;
    filter: grayscale(100%);
}

.default-star:not(.active):hover {
    opacity: 0.6;
    filter: grayscale(50%);
    transform: scale(1.1);
}

.default-star.active {
    opacity: 1;
    filter: grayscale(0%);
}

.default-star.active:hover {
    transform: scale(1.1);
}




/* ============================================
   TOAST NOTIFICATION STYLES
   ============================================ */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #1e293b;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid #16a34a;
}

.toast.success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.error {
    border-left: 4px solid #dc2626;
}

.toast.error::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.warning::before {
    content: "⚠";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.info {
    border-left: 4px solid #2563eb;
}

.toast.info::before {
    content: "i";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.hiding {
    opacity: 0;
    transform: translateY(20px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Admin Dashboard Styles */
:root {
    --primary-color: #2563eb;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--sidebar-text);
    font-size: 0.9rem;
}

/* Property Selector Widget */
.property-selector-widget {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-selector-widget label {
    display: block;
    font-size: 0.75rem;
    color: var(--sidebar-text);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-selector-widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;  /* WHITE TEXT */
    font-size: 0.95rem;
    cursor: pointer;
}

.property-selector-widget select option {
    background: #1e293b;  /* Dark background for dropdown options */
    color: #ffffff;       /* White text for options */
}

.property-selector-widget select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
}

/* Sidebar Navigation - NEW STRUCTURE */
.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    list-style: none;
}

/* Nav items work with both old and new structure */

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    margin: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.nav-item .nav-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.nav-item span:not(.nav-icon):not(.badge) {
    flex: 1;
}

.nav-item .badge {
    margin-left: auto;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--sidebar-text);
    color: var(--sidebar-text);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-footer .logout-btn {
    width: 100%;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: 1400px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Login Section */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    background: #eff6ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recent Activity */
.recent-activity {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.recent-activity h2 {
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Messages Section */
.filters {
    display: flex;
    gap: 10px;
}

.filters select {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border-color);
}

.message-card.urgent {
    border-left-color: var(--danger-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.message-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.message-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.urgency-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.urgency-badge.urgent {
    background: #fee2e2;
    color: var(--danger-color);
}

.urgency-badge.normal {
    background: #fef3c7;
    color: #d97706;
}

.urgency-badge.low {
    background: #dbeafe;
    color: var(--primary-color);
}

.message-body {
    margin-bottom: 15px;
    line-height: 1.6;
}

.message-attachments {
    margin: 15px 0;
}

.attachment-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.attachment-item img {
    max-width: 150px;
    border-radius: 8px;
    cursor: pointer;
}

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

.status-select {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Properties Grid */
/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.property-card {
    background: var(--surface);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.property-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.property-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--surface) 0%, #f0f9ff 100%);
}

.property-card.active::before {
    content: "Currently Viewing";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-card h3 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.property-info {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.property-info p {
    margin-bottom: 8px;
}

.property-info strong {
    color: var(--text-primary);
}

.property-access-code {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.property-access-code p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.access-url {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.access-url code {
    color: var(--primary-color);
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

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

.qr-code-section {
    margin-top: 15px;
    text-align: center;
}

.qr-code-section button {
    margin-bottom: 10px;
}

.qr-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

.property-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.property-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Property Form */
.property-form-container {
    margin-bottom: 30px;
}

.property-form-container.hidden {
    display: none;
}

.form-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.form-card h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Property Switcher in Header */
.property-switcher {
    background: var(--background);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.property-switcher label {
    font-weight: 600;
    color: var(--text-primary);
}

.property-switcher select {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.property-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Resource Editor */
.resource-editor {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.resource-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.editor-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-title-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.resource-title-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Troubleshooting Editor */
.troubleshooting-editor {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.troubleshooting-editor select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.steps-container {
    margin: 20px 0;
}

.step-item {
    background: var(--background);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.step-item input,
.step-item textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
}

.step-item textarea {
    min-height: 80px;
    font-family: inherit;
}

/* Settings Section */
.settings-group {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.settings-group h2 {
    margin-bottom: 10px;
}

.settings-group > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-options input[type="text"],
.settings-options input[type="email"],
.settings-options input[type="tel"] {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.settings-options select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-left: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-danger:hover {
    background: #b91c1c;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Utility Classes */
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .logo h2,
    .subtitle,
    .nav-item span,
    .user-name,
    .logout-btn {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.property-form {
    padding: 30px;
}

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

.property-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.property-form input[type="text"],
.property-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.property-form input[type="text"]:focus,
.property-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions .btn {
    flex: 1;
}

/* Enhanced Property Cards */
.property-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.property-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.property-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.theme-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.theme-standard {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.theme-luxury {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.theme-beach {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.property-info {
    margin: 15px 0;
    color: var(--text-secondary);
}

.property-info p {
    margin: 8px 0;
    line-height: 1.6;
}

.property-info code {
    background: var(--background);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
}

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

.property-actions .btn {
    flex: 1;
    min-width: 100px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* DEFAULT PROPERTY STAR ICON STYLES */
/* Add this to admin-styles.css */

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

.property-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
}

.default-star {
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    padding: 5px;
}

.default-star:not(.active) {
    opacity: 0.3;
    filter: grayscale(100%);
}

.default-star:not(.active):hover {
    opacity: 0.6;
    filter: grayscale(50%);
    transform: scale(1.1);
}

.default-star.active {
    opacity: 1;
    filter: grayscale(0%);
}

.default-star.active:hover {
    transform: scale(1.1);
}




/* ============================================
   MOBILE ADMIN INTERFACE - CSS
   ============================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #667eea;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.hamburger-icon {
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Sidebar adjustments for mobile */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        transition: transform 0.3s ease;
        overflow-y: auto;
        transform: translateX(-100%); /* Hidden by default */
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar.mobile-hidden {
        transform: translateX(-100%) !important;
    }
    
    /* Show sidebar when active */
    .sidebar.mobile-active {
        transform: translateX(0) !important;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 70px 15px 20px 15px;
    }
    
    /* Dashboard cards - stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Property cards - full width on mobile */
    .property-card {
        margin-bottom: 20px;
    }
    
    /* Message filters - stack on mobile */
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filters select {
        width: 100%;
    }
    
    /* Form inputs - full width on mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
    }
    
    /* Buttons - full width on mobile */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Property actions - stack buttons */
    .property-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-actions button {
        width: 100%;
    }
    
    /* Section headings - smaller on mobile */
    .section h2 {
        font-size: 1.5rem;
    }
    
/* Navigation items - ensure labels are visible */
.nav-item {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.nav-item span {
    display: inline-block !important; /* Show labels on mobile */
}

.nav-item .nav-icon {
    font-size: 1.2rem;
}
    
    /* Resource tabs - stack on mobile */
    .resource-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    /* Message cards - better mobile spacing */
    .message-card {
        padding: 15px;
    }
    
    .message-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-actions button,
    .message-actions select {
        width: 100%;
    }
    
    /* Toast notifications - adjust for mobile */
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
        padding: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*New Tiered additions*/
/* ========================================
   SUBSCRIPTION TIER SYSTEM - CSS
   Add this to admin-styles.css and styles.css
   ======================================== */

/* ============================================
   ADMIN INTERFACE - Upgrade Prompts
   ============================================ */

.upgrade-prompt {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.upgrade-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.upgrade-prompt h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2d3748;
}

.upgrade-description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

.upgrade-benefits {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.upgrade-benefits h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2d3748;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
}

.upgrade-benefits li {
    padding: 8px 0;
    font-size: 15px;
    color: #4a5568;
}

.upgrade-pricing {
    margin: 30px 0;
}

.upgrade-pricing .price {
    font-size: 48px;
    font-weight: 700;
    color: #4299e1;
}

.upgrade-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.upgrade-note {
    font-size: 14px;
    color: #718096;
    margin-top: 20px;
}

/* Nav Item Lock Indicators */
.nav-item.locked-feature {
    opacity: 0.6;
}

.nav-item .lock-icon {
    margin-left: auto;
    opacity: 0.5;
}

/* ============================================
   RENTER INTERFACE - Subscription Info & Tier Cards
   ============================================ */

/* Powered By Footer */
.powered-by-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

.powered-by-link {
    color: #718096;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.powered-by-link:hover {
    color: #4299e1;
    text-decoration: underline;
}

/* Subscription Info Screen */
.subscription-intro {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 40px;
    text-align: center;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.tier-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tier-card.essential {
    border-color: #4299e1;
}

.tier-card.professional {
    border-color: #48bb78;
    border-width: 3px;
}

.tier-card.premium {
    border-color: #ed8936;
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #48bb78;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.tier-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2d3748;
}

.tier-price {
    font-size: 42px;
    font-weight: 700;
    color: #2d3748;
}

.tier-price span {
    font-size: 18px;
    font-weight: 400;
    color: #718096;
}

.tier-features {
    list-style: none;
    padding: 0;
}

.tier-features li {
    padding: 10px 0;
    font-size: 15px;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li strong {
    color: #2d3748;
    display: block;
    margin-bottom: 8px;
}

.subscription-footer {
    text-align: center;
    margin: 40px 0 30px 0;
    padding: 30px;
    background: #f7fafc;
    border-radius: 8px;
}

.subscription-footer p {
    margin: 12px 0;
    font-size: 15px;
    color: #4a5568;
}

.subscription-savings {
    color: #48bb78 !important;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .tier-cards {
        grid-template-columns: 1fr;
    }
    
    .upgrade-prompt {
        padding: 30px 20px;
        margin: 30px 20px;
    }
    
    .upgrade-actions {
        flex-direction: column;
    }
}

/* Landscape iPad specific (renter interface) */
@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .powered-by-footer {
        margin-top: 30px !important;
        padding: 15px !important;
    }
    
    .tier-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}
/* Clickable Stat Cards */
.stat-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card.clickable:active {
    transform: translateY(-2px);
}

/* ============================================
   PROMPT MODAL (replaces browser native prompt)
   ============================================ */
.prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.prompt-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: promptFadeIn 0.2s ease;
}

@keyframes promptFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.prompt-modal h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #1a202c;
    line-height: 1.4;
}

.prompt-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.prompt-input:focus {
    border-color: var(--primary-color, #4299e1);
}

.prompt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.prompt-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.prompt-buttons button:active {
    transform: scale(0.97);
}

.prompt-cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.prompt-cancel:hover {
    background: #cbd5e0;
}

.prompt-ok {
    background: var(--primary-color, #4299e1);
    color: #fff;
}

.prompt-ok:hover {
    opacity: 0.9;
}
