/* ========================
   DASHBOARD STYLES
======================= */

.dashboard-container {
    display: flex;
    min-height: 100vh;
}


/* Sidebar - Full Height */
.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    align-items: flex-start;
}
.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header .logo i {
    font-size: 28px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    color: var(--gray-dark);
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(29, 78, 216, 0.08);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-badge {
    position: absolute;
    right: 12px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.nav-item {
    position: relative;
}

.sidebar-footer {
    /* padding: 20px; */
    /* border-top: 1px solid var(--border); */
        /* display: flex; */
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    color: var(--gray-dark);
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-info .user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .user-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.user-details .user-role {
    font-size: 12px;
    color: var(--gray);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: var(--light-50);
    border: none;
    border-radius: var(--radius);
    color: var(--gray-dark);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 32px 40px;
    background: var(--light-50);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.dashboard-header h1 span {
    color: var(--primary);
}

/* Dashboard Sections */
.dashboard-section,
.properties-section {
    display: none;
    margin-bottom: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-section.active,
.properties-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

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

#dashboard-overview {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dashboard Content */
.dashboard-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.dashboard-content .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray);
}

.dashboard-content .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border);
}

.dashboard-content .empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary);
}

/* Finance Grid */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.finance-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.finance-card:nth-child(1) { animation-delay: 0.1s; }
.finance-card:nth-child(2) { animation-delay: 0.2s; }
.finance-card:nth-child(3) { animation-delay: 0.3s; }
.finance-card:nth-child(4) { animation-delay: 0.4s; }

.finance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.finance-card .finance-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.finance-card .finance-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

.finance-card .finance-label {
    font-size: 14px;
    color: var(--gray);
}

/* Booking List */
.booking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

.booking-item:nth-child(1) { animation-delay: 0.05s; }
.booking-item:nth-child(2) { animation-delay: 0.1s; }
.booking-item:nth-child(3) { animation-delay: 0.15s; }
.booking-item:nth-child(4) { animation-delay: 0.2s; }
.booking-item:nth-child(5) { animation-delay: 0.25s; }

.booking-item:last-child {
    border-bottom: none;
}

.booking-item .booking-property {
    flex: 1;
}

.booking-item .booking-property h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.booking-item .booking-property p {
    font-size: 13px;
    color: var(--gray);
}

.booking-item .booking-dates {
    font-size: 13px;
    color: var(--gray-dark);
}

.booking-item .booking-status {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
}

.booking-item .booking-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.booking-item .booking-status.confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.booking-item .booking-status.completed {
    background: rgba(29, 78, 216, 0.1);
    color: var(--primary);
}

.booking-type-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(29, 78, 216, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

/* Message List */
.message-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

.message-item:nth-child(1) { animation-delay: 0.05s; }
.message-item:nth-child(2) { animation-delay: 0.1s; }
.message-item:nth-child(3) { animation-delay: 0.15s; }
.message-item:nth-child(4) { animation-delay: 0.2s; }
.message-item:nth-child(5) { animation-delay: 0.25s; }

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background: var(--light-50);
}

.message-item .message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.message-item .message-content {
    flex: 1;
    min-width: 0;
}

.message-item .message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.message-item .message-name {
    font-weight: 600;
    color: var(--secondary);
}

.message-item .message-date {
    font-size: 12px;
    color: var(--gray);
}

.message-item .message-preview {
    font-size: 14px;
    color: var(--gray-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-item.unread .message-name {
    color: var(--primary);
}

/* Tenant List */
.tenant-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.tenant-item:last-child {
    border-bottom: none;
}

.tenant-item .tenant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.tenant-item .tenant-info {
    flex: 1;
}

.tenant-item .tenant-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.tenant-item .tenant-info p {
    font-size: 13px;
    color: var(--gray);
}

.tenant-item .tenant-lease {
    text-align: right;
}

.tenant-item .tenant-lease .lease-dates {
    font-size: 13px;
    color: var(--gray-dark);
}

/* Readonly fields */
.property-modal-card .readonly-field {
    background-color: var(--light-50);
    color: var(--gray);
    cursor: not-allowed;
}

/* Current images grid */
.current-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.current-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
}

.current-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-image-item .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.current-image-item .remove-image:hover {
    background: var(--danger);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Properties Section */
.properties-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
}

.properties-section .section-header {
    margin-bottom: 28px;
}

.properties-section .section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.properties-section .section-header p {
    font-size: 14px;
    color: var(--gray);
}

/* Property Modal */
.property-modal-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.property-modal-card .form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--secondary);
}

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

/* Form Input Styles */
.property-modal-card .form-group {
    margin-bottom: 16px;
}

.property-modal-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.property-modal-card .form-group input::placeholder,
.property-modal-card .form-group select::placeholder {
    color: #909fbc;
}

.property-modal-card .form-group input,
.property-modal-card .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    background-color: var(--light-50);
    color: var(--secondary);
}

.property-modal-card .form-group input:focus,
.property-modal-card .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.property-modal-card .form-group input[type="file"] {
    padding: 10px;
    background: white;
}

.property-modal-card .upload-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
}

.property-modal-card .btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.property-modal-card .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.amenity-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--gray-dark);
}

.amenity-option:hover {
    border-color: var(--primary);
}

.amenity-option input {
    display: none;
}

.amenity-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(29, 78, 216, 0.05);
    color: var(--primary);
}

.amenity-option i {
    font-size: 14px;
}

/* My Properties Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--light-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }
.property-card:nth-child(7) { animation-delay: 0.7s; }
.property-card:nth-child(8) { animation-delay: 0.8s; }

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.property-card .property-image {
    height: 180px;
    overflow: hidden;
}

.property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card .property-content {
    padding: 20px;
}

.property-card .property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.property-card .property-price span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.property-card .property-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.property-card .property-location {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.property-card .property-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-dark);
}

.property-card .property-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.property-card-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.property-card-actions .edit-btn {
    background: var(--primary);
    color: white;
}

.property-card-actions .delete-btn {
    background: var(--danger);
    color: white;
}

.property-card-actions button:hover {
    opacity: 0.9;
}

/* No Properties State */
.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-properties i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border);
}

.no-properties h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary);
}

/* Mobile Menu Button - Fixed Position */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 44px;
    height: 44px;
    border: none;
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 20px;
    color: var(--secondary);
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: center;
}



.dashboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-header h1 {
    flex: 1;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ========================
   TENANT CARDS
======================= */
.tenant-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tenant-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tenant-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tenant-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.tenant-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.tenant-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.tenant-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tenant-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tenant-detail i {
    width: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.tenant-detail strong {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tenant-detail p {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
    margin: 0;
}

/* Responsive - Tenant Cards */
@media (max-width: 768px) {
    .tenant-details {
        grid-template-columns: 1fr;
    }
}

/* ========================
   FINANCE CARDS
======================= */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.finance-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.finance-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.finance-content {
    display: flex;
    flex-direction: column;
}

.finance-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.finance-label {
    font-size: 13px;
    color: var(--gray);
}

/* Responsive - Finance Cards */
@media (max-width: 1200px) {
    .finance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .finance-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   MESSAGE ITEMS
======================= */
.message-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.message-item:hover {
    background: var(--light-50);
}

.message-item.unread {
    background: rgba(13, 148, 136, 0.05);
    border-left: 3px solid var(--primary);
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

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

.message-name {
    font-weight: 600;
    color: var(--secondary);
}

.message-date {
    font-size: 12px;
    color: var(--gray);
}

.message-property {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 4px;
}

.message-preview {
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    top: 20px;
    right: 16px;
}

/* ========================
   EMPTY STATE
======================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 48px;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 24px;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.modal-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--light-50);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: var(--light-50);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    background: var(--border);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.booking-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.booking-actions .btn-confirm {
    background: var(--success);
    color: white;
}

.booking-actions .btn-confirm:hover {
    background: #16a34a;
}

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

.booking-actions .btn-decline:hover {
    background: #dc2626;
}

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

.booking-actions .btn-complete:hover {
    background: var(--primary-dark);
}

.booking-tenant-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--gray);
}

.booking-tenant-info p {
    margin: 4px 0;
}

/* Message Detail Modal */
.message-detail-content {
    padding: 8px;
}

.message-detail-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.message-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.message-detail-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.message-detail-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 4px;
}

.message-date {
    font-size: 12px;
    color: var(--gray);
}

.message-detail-body {
    background: var(--light-50);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.message-detail-body p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

.message-detail-contact {
    margin-bottom: 20px;
}

.message-detail-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-dark);
    margin: 8px 0;
    font-size: 14px;
}

.message-detail-contact i {
    color: var(--primary);
    width: 20px;
}

.message-detail-content .btn {
    width: 100%;
    margin-top: 12px;
}

.message-reply-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.message-reply-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.message-reply-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.message-reply-section textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.message-reply-section .btn {
    width: 100%;
}

/* Unread dot indicator */
.unread-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Message property */
.message-property {
    font-size: 13px;
    color: var(--primary);
    margin: 4px 0;
    font-weight: 500;
}

/* Booking info layout */
.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.booking-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.booking-date {
    font-size: 13px;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.dashboard-header h1 span {
    color: var(--primary);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}