/* Property Management Portal - Mobile-First Design for Ages 35-80 */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(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(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
@media (max-width: 768px) { body { font-size: 18px; } }

/* Screens */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* Login */
.login-container { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.logo-section { text-align: center; color: white; margin-bottom: 40px; }
.logo-section i { font-size: 64px; margin-bottom: 20px; }
.logo-section h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.logo-section p { font-size: 18px; opacity: 0.9; }
.role-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 900px; width: 100%; }
.role-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 30px; background: var(--surface); border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); min-height: 160px; }
.role-btn:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.role-btn i { font-size: 48px; color: var(--primary); margin-bottom: 15px; }
.role-btn span { font-size: 18px; font-weight: 600; color: var(--text); }

/* Header */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-left, .header-right { display: flex; align-items: center; gap: 15px; }
.header-left h1 { font-size: 20px; }
.menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; }
.icon-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); padding: 10px; border-radius: 8px; position: relative; transition: all 0.2s; }
.icon-btn:hover { background: var(--bg); color: var(--primary); }
.icon-btn .badge { position: absolute; top: 2px; right: 2px; background: var(--danger); color: white; font-size: 11px; padding: 2px 6px; border-radius: 10px; }
.user-info { display: flex; align-items: center; gap: 10px; padding-left: 15px; border-left: 1px solid var(--border); }
.user-info span { font-weight: 500; color: var(--text-light); }
@media (max-width: 768px) { .menu-btn { display: block; } .header-left h1 { font-size: 16px; } .user-info span { display: none; } }

/* Sidebar */
.sidebar { position: fixed; left: 0; top: 73px; bottom: 0; width: 250px; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; overflow-y: auto; transition: transform 0.3s ease; z-index: 90; }
.nav-menu { list-style: none; }
.nav-item { display: flex; align-items: center; gap: 15px; padding: 16px 25px; cursor: pointer; color: var(--text-light); font-weight: 500; font-size: 16px; transition: all 0.2s; border-left: 3px solid transparent; }
.nav-item:hover { background: var(--bg); color: var(--primary); }
.nav-item.active { background: rgba(37, 99, 235, 0.1); color: var(--primary); border-left-color: var(--primary); }
.nav-item i { font-size: 20px; width: 24px; text-align: center; }
@media (max-width: 768px) { .sidebar { transform: translateX(-100%); top: 0; padding-top: 80px; } .sidebar.open { transform: translateX(0); } }

/* Main Content */
.main-content { margin-left: 250px; padding: 30px; min-height: calc(100vh - 73px); }
@media (max-width: 768px) { .main-content { margin-left: 0; padding: 20px 15px; } }
.content-section { display: none; }
.content-section.active { display: block; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.section-header h2 { font-size: 28px; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
@media (max-width: 768px) { .btn { padding: 16px 28px; font-size: 17px; width: 100%; justify-content: center; } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; gap: 20px; padding: 25px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-icon.open { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.stat-icon.progress { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon.completed { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.stat-icon.properties { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.stat-info h3 { font-size: 14px; color: var(--text-light); margin-bottom: 5px; }
.stat-number { font-size: 32px; font-weight: 700; }

/* Filters */
.filters-bar { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 250px; position: relative; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.search-box input { width: 100%; padding: 14px 14px 14px 45px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; }
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group select { padding: 14px 20px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; min-width: 150px; }

/* Work Orders */
.work-orders-list, .activity-list { display: flex; flex-direction: column; gap: 15px; }
.work-order-card { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--primary); cursor: pointer; transition: all 0.2s; }
.work-order-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-2px); }
.work-order-card.priority-emergency { border-left-color: var(--danger); }
.work-order-card.priority-high { border-left-color: var(--warning); }
.work-order-card.priority-low { border-left-color: var(--success); }
.wo-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.wo-title { font-size: 18px; font-weight: 600; }
.wo-id { font-size: 14px; color: var(--text-light); }
.wo-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-light); font-size: 14px; }
.wo-meta span { display: flex; align-items: center; gap: 6px; }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.status-open { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-in-progress { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-pending { background: rgba(100, 116, 139, 0.1); color: var(--text-light); }
.status-completed { background: rgba(34, 197, 94, 0.1); color: var(--success); }

/* Properties */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.property-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.property-image { height: 150px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; }
.property-image i { font-size: 48px; color: white; opacity: 0.5; }
.property-info { padding: 20px; }
.property-info h3 { font-size: 18px; margin-bottom: 10px; }
.property-details { color: var(--text-light); font-size: 14px; margin-bottom: 15px; }
.property-details p { margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.property-stats { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--border); }
.property-stat { text-align: center; }
.property-stat .number { font-size: 20px; font-weight: 700; color: var(--primary); }
.property-stat .label { font-size: 12px; color: var(--text-light); }

/* Tenants */
.tenants-list { display: flex; flex-direction: column; gap: 15px; }
.tenant-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.tenant-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: 600; }
.tenant-info { flex: 1; }
.tenant-info h3 { font-size: 18px; margin-bottom: 5px; }
.tenant-info p { color: var(--text-light); font-size: 14px; }
.tenant-actions { display: flex; gap: 10px; }
@media (max-width: 768px) { .tenant-card { flex-direction: column; text-align: center; } .tenant-actions { width: 100%; flex-direction: column; } }

/* Payments */
.payment-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.summary-card { background: var(--surface); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-card h4 { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.summary-card .amount { font-size: 28px; font-weight: 700; color: var(--success); }
.summary-card .amount.warning { color: var(--warning); }
.payments-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.payment-row { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.payment-row:last-child { border-bottom: none; }
.payment-info h4 { font-size: 16px; margin-bottom: 5px; }
.payment-info p { font-size: 14px; color: var(--text-light); }
.payment-amount { font-size: 20px; font-weight: 700; color: var(--success); }

/* Messages */
.messages-container { display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: calc(100vh - 250px); min-height: 500px; }
.messages-sidebar { border-right: 1px solid var(--border); overflow-y: auto; }
.conversation-item { display: flex; align-items: center; gap: 15px; padding: 20px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.conversation-item:hover, .conversation-item.active { background: var(--bg); }
.conversation-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; }
.conversation-info { flex: 1; min-width: 0; }
.conversation-info h4 { font-size: 15px; margin-bottom: 3px; }
.conversation-info p { font-size: 13px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.messages-main { display: flex; flex-direction: column; }
.chat-header { padding: 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message-bubble { max-width: 70%; padding: 12px 18px; border-radius: 18px; font-size: 15px; }
.message-bubble.sent { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 10px; padding: 20px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 14px 20px; border: 1px solid var(--border); border-radius: 25px; font-size: 16px; }
.chat-input .btn { border-radius: 50%; width: 50px; height: 50px; padding: 0; }
@media (max-width: 768px) { .messages-container { grid-template-columns: 1fr; height: auto; } .messages-sidebar { max-height: 300px; } }

/* Chat Sidebar */
.chat-sidebar { position: fixed; right: -350px; top: 73px; bottom: 0; width: 350px; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -4px 0 15px rgba(0,0,0,0.1); transition: right 0.3s ease; z-index: 95; }
.chat-sidebar.open { right: 0; }
.chat-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }

/* Reports */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.report-card { background: var(--surface); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.report-card i { font-size: 48px; color: var(--primary); margin-bottom: 20px; }
.report-card h4 { font-size: 18px; margin-bottom: 10px; }
.report-card p { color: var(--text-light); margin-bottom: 20px; }

/* Recent Activity */
.recent-activity h3 { font-size: 20px; margin-bottom: 20px; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--surface); border-radius: var(--radius); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 22px; }
.close-modal { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-light); padding: 5px 10px; }
.close-modal:hover { color: var(--text); }

/* Forms */
form { padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; font-size: 16px; border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.recommendations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.recommendation-tag { padding: 6px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.recommendation-tag:hover { background: var(--primary); color: white; border-color: var(--primary); }
.form-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 768px) { .form-actions { flex-direction: column-reverse; } .form-actions .btn { width: 100%; } }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   ADDITIONAL STYLES FOR NEW FEATURES
   ========================================== */

/* Navbar */
.navbar { background: #1a1a2e; padding: 0 20px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-brand a { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; padding: 15px 0; }
.nav-logo { background: #c49060; padding: 8px 12px; border-radius: 6px; font-weight: bold; font-size: 18px; }
.nav-text { font-size: 18px; font-weight: 500; }
.nav-menu { display: flex; list-style: none; gap: 10px; margin: 0; padding: 0; align-items: center; }
.nav-link { color: rgba(255,255,255,0.8); text-decoration: none; padding: 10px 15px; border-radius: 6px; transition: all 0.3s; font-size: 15px; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: white; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background: white; margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1a1a2e; flex-direction: column; padding: 20px; gap: 5px; }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 15px; font-size: 18px; }
}

/* Role Selection */
.role-indicator { position: relative; }
.role-badge { background: #c49060; color: white; border: none; padding: 10px 20px; border-radius: 25px; cursor: pointer; font-weight: 600; font-size: 14px; }
.role-menu { position: absolute; top: 100%; right: 0; background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); min-width: 200px; margin-top: 10px; overflow: hidden; z-index: 200; }
.role-menu.hidden { display: none; }
.role-option { display: block; width: 100%; padding: 15px 20px; border: none; background: none; text-align: left; cursor: pointer; font-size: 15px; border-bottom: 1px solid #eee; }
.role-option:hover { background: #f5f5f5; }
.role-option:last-child { border-bottom: none; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #1a1a2e, #2d2d44); color: white; padding: 60px 20px; text-align: center; }
.hero h1 { font-size: 36px; margin-bottom: 10px; }
.hero p { font-size: 18px; opacity: 0.9; }
.role-display { margin-top: 15px; padding: 10px 20px; background: rgba(255,255,255,0.1); border-radius: 25px; display: inline-block; font-size: 14px; }

/* Section Styling */
.section { padding: 40px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: 28px; margin-bottom: 30px; color: #1a1a2e; border-bottom: 3px solid #c49060; padding-bottom: 10px; display: inline-block; }

/* Role Content */
.role-content { display: none; }
.role-content.active { display: block; }
.role-content.hidden { display: none; }

/* Dashboard Warning Banner */
.dashboard-warning { background: linear-gradient(135deg, #1a1a2e, #2d2d44); color: white; padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; }
.dashboard-warning p { margin: 0; font-size: 16px; }

/* Stats Grid Enhancement */
.stat-card { display: flex; align-items: center; gap: 15px; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stat-icon { font-size: 36px; }
.stat-content h3 { font-size: 28px; margin: 0 0 5px; color: #1a1a2e; }
.stat-content p { margin: 0; color: #666; font-size: 14px; }
.stat-content small { color: #999; font-size: 12px; }
.stat-card-lg { padding: 30px; }

/* Work Order Section */
.work-order-section, .tenant-request-section, .payment-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 2px solid #e9ecef;
}
.work-order-section h3, .tenant-request-section h3, .payment-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1a1a2e;
}

/* Form Enhancements */
.work-order-form { max-width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; font-size: 16px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #c49060;
    box-shadow: 0 0 0 3px rgba(196, 144, 96, 0.2);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: 15px; margin-top: 25px; }
.btn-lg { padding: 18px 35px; font-size: 18px; }
.hidden { display: none !important; }

/* Payment Options */
.payment-options { display: flex; gap: 15px; flex-wrap: wrap; }
.payment-btn { flex: 1; min-width: 200px; padding: 20px; text-align: center; font-size: 16px; }

/* Manager/Tenant Actions */
.manager-actions, .tenant-actions, .subcontractor-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}
.manager-actions h3, .tenant-actions h3, .subcontractor-actions h3 {
    margin-bottom: 20px;
    font-size: 20px;
}
.manager-actions button, .tenant-actions button, .subcontractor-actions button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Property Cards Enhancement */
.property-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.1); margin-bottom: 20px; }
.property-image { height: 200px; overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; }
.property-details { padding: 25px; }
.property-details h3 { font-size: 22px; margin-bottom: 10px; color: #1a1a2e; }
.property-address { color: #666; margin-bottom: 15px; font-size: 15px; }
.property-info { list-style: none; padding: 0; margin-bottom: 20px; }
.property-info li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.property-info li:last-child { border-bottom: none; }
.status-good { color: #22c55e; font-weight: 600; }
.property-expanded { padding: 20px 25px; background: #f8f9fa; border-top: 2px solid #eee; }
.property-expanded h4 { font-size: 18px; margin: 20px 0 15px; color: #1a1a2e; }
.property-expanded h4:first-child { margin-top: 0; }

/* Tenant List in Property */
.tenant-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.tenant-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 1px 5px rgba(0,0,0,0.1); }
.tenant-card h5 { font-size: 16px; margin-bottom: 10px; color: #c49060; }
.tenant-card p { margin: 5px 0; font-size: 14px; }
.tenant-name { font-weight: 600; }

/* Add Property Section */
.add-property-section { margin-top: 30px; text-align: center; }

/* Maintenance Tabs */
.maintenance-tabs { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.tab-btn { padding: 12px 25px; border: 2px solid #ddd; background: white; border-radius: 25px; cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.3s; }
.tab-btn:hover { border-color: #c49060; }
.tab-btn.active { background: #c49060; color: white; border-color: #c49060; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Maintenance Items */
.maintenance-list { display: flex; flex-direction: column; gap: 15px; }
.maintenance-item { background: white; padding: 20px; border-radius: 10px; border-left: 4px solid #ddd; box-shadow: 0 1px 5px rgba(0,0,0,0.08); }
.maintenance-item.status-in-progress { border-left-color: #f59e0b; }
.maintenance-item.status-completed { border-left-color: #22c55e; }
.maintenance-item.status-scheduled { border-left-color: #3b82f6; }
.maintenance-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.maintenance-header h4 { margin: 0; font-size: 18px; }
.badge { padding: 5px 12px; border-radius: 15px; font-size: 12px; font-weight: 600; }
.badge-in-progress { background: #fef3c7; color: #b45309; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-scheduled { background: #dbeafe; color: #1d4ed8; }
.maintenance-description { color: #666; margin-bottom: 12px; font-size: 15px; }
.maintenance-meta { display: flex; gap: 20px; color: #999; font-size: 13px; flex-wrap: wrap; }

/* Documents */
.documents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.document-category { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.document-category h3 { font-size: 18px; margin-bottom: 20px; color: #1a1a2e; }
.document-list { list-style: none; padding: 0; }
.document-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.document-list li:last-child { border-bottom: none; }
.document-list a { color: #3b82f6; text-decoration: none; font-size: 15px; }
.document-list a:hover { text-decoration: underline; }

/* Contact Section */
.contact-content { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.contact-item h3 { font-size: 18px; margin-bottom: 15px; color: #1a1a2e; }
.contact-item p { margin: 8px 0; color: #666; font-size: 15px; }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: #c49060; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(196, 144, 96, 0.4); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.chat-toggle:hover { transform: scale(1.1); }
.chat-icon { font-size: 28px; }
.chat-notification { position: absolute; top: -5px; right: -5px; background: #ef4444; color: white; font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.chat-window { position: absolute; bottom: 80px; right: 0; width: 350px; max-width: calc(100vw - 40px); background: white; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.2); overflow: hidden; }
.chat-window.hidden { display: none; }
.chat-header { background: #1a1a2e; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { margin: 0; font-size: 16px; }
.chat-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 0 5px; }
.chat-messages { height: 300px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; background: #f8f9fa; }
.chat-message { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.chat-message.incoming { background: white; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-message.outgoing { background: #c49060; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-message p { margin: 0 0 5px; }
.chat-time { font-size: 11px; opacity: 0.7; }
.chat-input-form { display: flex; padding: 15px; background: white; border-top: 1px solid #eee; }
.chat-input-form input { flex: 1; padding: 12px 15px; border: 2px solid #ddd; border-radius: 25px; font-size: 14px; margin-right: 10px; }
.chat-input-form input:focus { outline: none; border-color: #c49060; }
.chat-send { background: #c49060; color: white; border: none; padding: 12px 20px; border-radius: 25px; cursor: pointer; font-weight: 600; }
.chat-send:hover { background: #b07d4f; }

/* Payment Modal */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal.hidden { display: none; }
.modal-content { background: white; border-radius: 12px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-content h2 { padding: 25px 30px; margin: 0; border-bottom: 1px solid #eee; font-size: 22px; }
.modal-close { position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 30px; cursor: pointer; color: #666; }
.modal-close:hover { color: #333; }
.payment-form { padding: 30px; }
.payment-methods { margin: 25px 0; }
.payment-methods h4 { margin-bottom: 15px; font-size: 16px; }
.payment-method-options { display: flex; flex-direction: column; gap: 10px; }
.payment-method-btn { padding: 15px 20px; border: 2px solid #ddd; background: white; border-radius: 8px; cursor: pointer; font-size: 16px; text-align: left; transition: all 0.3s; }
.payment-method-btn:hover { border-color: #c49060; }
.payment-method-btn.selected { border-color: #c49060; background: #fef7ed; }

/* Role Modal */
#roleModal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
#roleModal.hidden { display: none; }
#roleModal .modal-content { background: transparent; text-align: center; max-width: 800px; box-shadow: none; }
#roleModal h2 { color: white; font-size: 32px; margin-bottom: 15px; border: none; padding: 0; }
#roleModal p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 40px; }
#roleModal .role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
#roleModal .role-btn { background: white; border: none; border-radius: 12px; padding: 35px 25px; cursor: pointer; transition: all 0.3s; text-align: center; }
#roleModal .role-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
#roleModal .role-icon { font-size: 48px; display: block; margin-bottom: 15px; }
#roleModal .role-name { font-size: 18px; font-weight: 600; display: block; margin-bottom: 5px; color: #1a1a2e; }
#roleModal .role-desc { font-size: 14px; color: #666; }
.role-btn-close { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: white; padding: 15px 30px; border-radius: 8px; cursor: pointer; font-size: 16px; margin-top: 30px; transition: all 0.3s; }
.role-btn-close:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Footer */
.footer { background: #1a1a2e; color: white; padding: 30px 20px; text-align: center; }
.footer p { margin: 5px 0; font-size: 14px; }
.footer a { color: #c49060; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.btn-primary { background: #c49060; color: white; }
.btn-primary:hover { background: #b07d4f; }
.btn-secondary { background: #e5e7eb; color: #374151; }
.btn-secondary:hover { background: #d1d5db; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .section h2 { font-size: 24px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 20px; }
    .stat-content h3 { font-size: 24px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .chat-widget { bottom: 20px; right: 20px; }
    .chat-window { width: 300px; }
    .properties-grid { grid-template-columns: 1fr; }
    #roleModal .role-grid { grid-template-columns: 1fr; }
    #roleModal h2 { font-size: 24px; }
}
