/**
 * RentFlow - Property Management System
 * Enhanced Modern UI with Beautiful Styling
 */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --bg-color: #f1f5f9;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== LOADING SCREEN ==================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    backdrop-filter: blur(10px);
    padding: 10px;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-logo.error {
    background: rgba(239, 68, 68, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.loading-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-content p {
    opacity: 0.9;
}

/* ==================== APP LAYOUT ==================== */
#app {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: var(--sidebar-hover);
    color: white;
    border-left-color: var(--sidebar-active);
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    font-size: 18px;
    text-align: center;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    height: var(--topbar-height);
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-color);
}

#page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-button {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.icon-button:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--bg-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.content-wrapper {
    flex: 1;
    padding: 30px;
    background: var(--bg-color);
}

/* ==================== PAGES ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header h2 i {
    color: var(--primary-color);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--surface-color);
}

.search-input {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

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

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

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

.btn-secondary:hover:not(:disabled) {
    background: #475569;
}

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

.btn-success:hover:not(:disabled) {
    background: #059669;
}

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-icon {
    padding: 8px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 16px;
}

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

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-icon.btn-success:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* ==================== TABLES ==================== */
.table-responsive {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-color);
}

.data-table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-color);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 16px;
    color: var(--text-primary);
}

.data-table tbody td strong {
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
}

.simple-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.simple-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.simple-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-active,
.badge-paid,
.badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-pending,
.badge-in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-vacant,
.badge-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

.badge-late,
.badge-cancelled,
.badge-expired,
.badge-terminated,
.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-maintenance,
.badge-occupied {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.badge-blacklisted {
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.badge-priority-low {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.badge-priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ==================== CARDS - DARK MODE WITH NEON ACCENTS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--neon-color, #a78bfa) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-color, #a78bfa), var(--neon-color-alt, #c084fc));
    box-shadow: 0 0 20px var(--neon-color, #a78bfa);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px var(--neon-color, rgba(167, 139, 250, 0.3)),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--neon-color, #a78bfa);
}

.stat-card:hover::before {
    opacity: 0.08;
}

/* Unique neon colors for each card */
.stat-card:nth-child(1) {
    --neon-color: #a78bfa;
    --neon-color-alt: #c084fc;
}

.stat-card:nth-child(2) {
    --neon-color: #2dd4bf;
    --neon-color-alt: #5eead4;
}

.stat-card:nth-child(3) {
    --neon-color: #60a5fa;
    --neon-color-alt: #93c5fd;
}

.stat-card:nth-child(4) {
    --neon-color: #fbbf24;
    --neon-color-alt: #fcd34d;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.stat-card-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--neon-color, #a78bfa);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px var(--neon-color, rgba(167, 139, 250, 0.3)),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 20px var(--neon-color, rgba(167, 139, 250, 0.3)),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 40px var(--neon-color, rgba(167, 139, 250, 0.6)),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.stat-card-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--neon-color, #a78bfa);
    margin-bottom: 8px;
    text-shadow: 0 0 30px var(--neon-color, rgba(167, 139, 250, 0.5));
    position: relative;
    z-index: 1;
    line-height: 1;
}

.stat-card-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-card-change.positive {
    color: #34d399;
}

.stat-card-change.negative {
    color: #f87171;
}

.stat-card-change i {
    font-size: 12px;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 20px;
}

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

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

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

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header h3 i {
    color: var(--primary-color);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: var(--transition);
    line-height: 1;
}

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

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

/* ==================== FORMS ==================== */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--surface-color);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

/* ==================== VIEW DETAILS ==================== */
.view-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== REPORTS & DASHBOARD INFO CARDS ==================== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.report-card {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.report-card.full-width {
    grid-column: 1 / -1;
}

.report-card-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    position: relative;
    overflow: hidden;
}

.report-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 100px;
    height: 150px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.report-card-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.report-card-header h3 i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.report-card-body {
    padding: 24px;
    background: var(--surface-color);
}

.report-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.report-stat:hover {
    padding-left: 8px;
    background: rgba(59, 130, 246, 0.02);
    border-radius: 8px;
    border-bottom-color: transparent;
}

.report-stat:last-child {
    border-bottom: none;
}

.report-stat.report-total {
    border-top: 2px solid var(--primary-color);
    padding-top: 20px;
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    border-radius: 8px;
    padding: 16px 12px 12px 12px;
}

.report-stat.report-total:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent);
}

.report-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.report-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    margin-right: 8px;
    vertical-align: middle;
}

.report-label > div:first-child {
    display: inline;
}

.report-label > div:last-child {
    display: block;
    margin-left: 16px;
    margin-top: 4px;
}

.report-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== UTILITY CLASSES ==================== */
.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.overdue {
    background: rgba(239, 68, 68, 0.05) !important;
}

/* ==================== ENHANCED REPORTS - FILTERS & CONTROLS ==================== */
.report-filters {
    background: var(--surface-color);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: var(--primary-color);
    font-size: 14px;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--surface-color);
    cursor: pointer;
    color: var(--text-primary);
}

.filter-group select:hover,
.filter-group input[type="date"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.custom-date-range {
    display: none;
    gap: 12px;
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.custom-date-range.active {
    display: flex;
}

.custom-date-range .filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.report-period-header {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 20px 28px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.report-period-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.report-period-header h2 i {
    font-size: 28px;
    opacity: 0.9;
}

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

.report-date-range {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
}

.report-generated {
    font-size: 12px;
    opacity: 0.75;
}

/* ==================== ENHANCED REPORTS - STATS GRID ==================== */
.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-stat {
    background: var(--surface-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.report-stat.success {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), var(--surface-color));
}

.report-stat.danger {
    border-left: 4px solid var(--danger-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), var(--surface-color));
}

.report-stat.warning {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), var(--surface-color));
}

.report-stat.primary {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), var(--surface-color));
}

.report-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: var(--primary-color);
}

.report-stat.success .report-stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success-color);
}

.report-stat.danger .report-stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--danger-color);
}

.report-stat.warning .report-stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: var(--warning-color);
}

.report-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.report-stat-change {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mini-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== ENHANCED REPORTS - PAYMENT ANALYSIS CHART ==================== */
.chart-container {
    margin-top: 20px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-bar-label {
    min-width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.chart-bar-track {
    flex: 1;
    height: 32px;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.bar-segment {
    height: 100%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
}

.bar-segment:hover {
    filter: brightness(1.1);
}

.bar-segment.paid {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bar-segment.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bar-segment.late {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.chart-bar-value {
    min-width: 100px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
}

/* ==================== ENHANCED REPORTS - EXPENSE BREAKDOWN ==================== */
.expense-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.expense-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expense-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-item-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.expense-item-label i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
}

.expense-item-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.expense-item-bar {
    height: 12px;
    background: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.expense-item-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.expense-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.expense-item-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== ENHANCED REPORTS - RECENT TRANSACTIONS TABLE ==================== */
.recent-transactions {
    margin-top: 20px;
}

.recent-transactions .data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ==================== ENHANCED REPORTS - PRINT FOOTER ==================== */
.report-print-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px dashed var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.report-print-footer p {
    margin: 4px 0;
}

.report-print-footer strong {
    color: var(--text-primary);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--surface-color);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--danger-color);
}

.toast.warning i {
    color: var(--warning-color);
}

.toast.info i {
    color: var(--info-color);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .search-input {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    /* Full-screen modal on mobile for better UX */
    .modal {
        align-items: flex-start;
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        animation: slideInFromBottom 0.3s ease;
    }
    
    @keyframes slideInFromBottom {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .modal-header {
        flex-shrink: 0;
        padding: 20px;
        background: var(--surface-color);
        border-bottom: 2px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .modal-header h3 {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .modal-body {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
        background: var(--bg-color);
    }
    
    .modal-footer {
        flex-shrink: 0;
        padding: 20px;
        border-top: 2px solid var(--border-color);
        background: var(--surface-color);
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Better form spacing on mobile */
    .form {
        gap: 20px;
    }
    
    .form-group {
        gap: 10px;
    }
    
    .form-group label {
        font-size: 15px;
        font-weight: 600;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    select.form-control {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 14px;
        padding-right: 40px;
        appearance: none;
        -webkit-appearance: none;
    }
    
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 16px;
        touch-action: manipulation; /* Prevents double-tap zoom */
    }
    
    /* Improve table actions on mobile */
    .table-actions {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .table-actions .btn-icon {
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
    }
    
    /* Better spacing for form groups */
    .form-group {
        margin-bottom: 4px;
    }
    
    /* Ensure inputs don't overflow on mobile */
    input.form-control,
    select.form-control,
    textarea.form-control {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Make cards easier to tap */
    .property-card,
    .tenant-card,
    .stat-card {
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .property-card:active,
    .tenant-card:active,
    .stat-card:active {
        transform: scale(0.98);
    }
    
    .user-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0 15px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .stat-card-value {
        font-size: 28px;
    }
    
    /* Optimize form inputs for small screens */
    .form-control {
        font-size: 16px; /* Prevents auto-zoom on iOS */
        padding: 12px 14px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 16px;
    }
}

/* ==================== TENANT PROFILE STYLES ==================== */
.tenant-profile {
    max-width: 100%;
    padding: 0;
}

.profile-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.profile-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

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

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-item.full-width {
    grid-column: 1 / -1;
}

.profile-item label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.profile-item span {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Financial Cards */
.financial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.fin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.fin-card:hover {
    transform: translateY(-3px);
}

.fin-card.fin-paid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.fin-card.fin-outstanding {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.fin-card.fin-rent {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.fin-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.fin-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Profile Table */
.profile-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-table table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table thead {
    background: var(--bg-color);
}

.profile-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.profile-table tbody tr:hover {
    background: var(--bg-color);
}

/* Profile List */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-list-item {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 16px;
    border-left: 3px solid var(--primary-color);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.list-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.list-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.list-item-meta i {
    margin-right: 4px;
    color: var(--primary-color);
}

.list-item-desc {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 8px;
    line-height: 1.5;
}

.no-data {
    text-align: center;
    padding: 32px;
    color: var(--text-secondary);
    font-size: 15px;
}

.no-data i {
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* Modal size for profile */
.modal.large .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .financial-cards {
        grid-template-columns: 1fr;
    }
    
    .list-item-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .modal.large .modal-content {
        max-width: 95%;
    }
}

/* ==================== PRINT STYLES ==================== */
.no-print {
    /* Class to hide elements when printing */
}

@media print {
    /* Hide UI elements when printing */
    .sidebar,
    .top-bar,
    .filter-bar,
    .page-header button,
    .table-actions,
    .btn,
    .no-print,
    .report-filters,
    .filter-actions,
    .nav-item,
    button {
        display: none !important;
    }
    
    /* Reset layout for printing */
    body {
        background: white;
        color: black;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .content-wrapper {
        padding: 0;
        background: white;
    }
    
    /* Optimize report header for print */
    .report-period-header {
        background: white !important;
        color: black !important;
        border: 2px solid #333;
        page-break-after: avoid;
        box-shadow: none;
    }
    
    .report-period-header h2 {
        color: black !important;
    }
    
    .report-period-meta,
    .report-date-range,
    .report-generated {
        color: black !important;
        opacity: 1 !important;
    }
    
    /* Optimize stat cards for print */
    .report-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        page-break-inside: avoid;
    }
    
    .report-stat {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
        background: white;
    }
    
    /* Optimize report cards for print */
    .reports-grid,
    .report-card {
        page-break-inside: avoid;
        box-shadow: none;
    }
    
    .report-card {
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .report-card-header {
        background: #f5f5f5 !important;
        border-bottom: 2px solid #333;
    }
    
    .report-card-header h3 {
        color: black !important;
    }
    
    /* Optimize charts for print */
    .chart-bar {
        page-break-inside: avoid;
    }
    
    .bar-segment {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    /* Optimize expense breakdown for print */
    .expense-breakdown {
        page-break-inside: avoid;
    }
    
    .expense-item-fill {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    /* Optimize tables for print */
    .table-responsive {
        overflow: visible;
        border: 1px solid #ddd;
    }
    
    .data-table {
        page-break-inside: auto;
    }
    
    .data-table thead {
        background: #f5f5f5 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .data-table thead th {
        border-bottom: 2px solid #333 !important;
        color: black !important;
    }
    
    .data-table tbody tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .data-table tbody td {
        border-bottom: 1px solid #ddd;
        color: black;
    }
    
    /* Show print footer */
    .report-print-footer {
        display: block;
        page-break-before: avoid;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 2px solid #333;
        color: black;
    }
    
    /* Badges in print */
    .badge {
        border: 1px solid currentColor;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    /* Page breaks */
    .report-card.full-width {
        page-break-before: auto;
    }
    
    h2, h3 {
        page-break-after: avoid;
        color: black;
    }
    
    /* Remove shadows and transitions */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Tenant Profile Print Styles */
    body.printing-profile .modal-overlay {
        position: static !important;
        background: white !important;
    }
    
    body.printing-profile .modal {
        box-shadow: none !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        border: none !important;
    }
    
    body.printing-profile .modal-header,
    body.printing-profile .modal-footer {
        display: none !important;
    }
    
    body.printing-profile .modal-body {
        padding: 0 !important;
    }
    
    body.printing-profile .tenant-profile {
        background: white !important;
    }
    
    body.printing-profile .profile-section {
        border: 1px solid #ddd !important;
        background: white !important;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
    
    body.printing-profile .profile-section h3 {
        background: #f5f5f5 !important;
        padding: 10px 15px;
        margin: -24px -24px 20px -24px;
        border-bottom: 2px solid #333;
        color: black !important;
    }
    
    body.printing-profile .financial-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    body.printing-profile .fin-card {
        border: 2px solid #333 !important;
        background: white !important;
        color: black !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    body.printing-profile .fin-card.fin-paid {
        border-color: #10b981 !important;
        background: #ecfdf5 !important;
    }
    
    body.printing-profile .fin-card.fin-outstanding {
        border-color: #ef4444 !important;
        background: #fef2f2 !important;
    }
    
    body.printing-profile .fin-card.fin-rent {
        border-color: #3b82f6 !important;
        background: #eff6ff !important;
    }
    
    body.printing-profile .fin-label,
    body.printing-profile .fin-value {
        color: black !important;
    }
    
    body.printing-profile .profile-table {
        border: 1px solid #ddd;
    }
    
    body.printing-profile .profile-table thead {
        background: #f5f5f5 !important;
    }
    
    body.printing-profile .profile-table th,
    body.printing-profile .profile-table td {
        color: black !important;
        border-color: #ddd !important;
    }
    
    body.printing-profile .profile-list-item {
        border: 1px solid #ddd !important;
        background: white !important;
        page-break-inside: avoid;
    }
    
    body.printing-profile .list-item-title,
    body.printing-profile .list-item-meta,
    body.printing-profile .list-item-desc {
        color: black !important;
    }
    
    body.printing-profile .badge {
        border: 1px solid currentColor !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
