/* css/main.css - COMPLETE VERSION with ALL CSS from ALL HTML files */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* ============ APP BAR (from all pages) ============ */
.app-bar {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.student-house-btn {
    background: #ed6c02;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.refresh-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* ============ DASHBOARD HEADER (from landlord-dashboard.html) ============ */
.dashboard-header {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    padding: 20px;
    color: white;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976D2;
    font-size: 24px;
    cursor: pointer;
    border: 2px solid white;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-text {
    font-size: 12px;
    opacity: 0.8;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}

.currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
    font-size: 11px;
}

.wallet-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ============ SECTIONS ============ */
.section {
    padding: 20px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.view-all {
    color: #1976D2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ============ STATS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

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

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1976D2;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1976D2;
}

/* ============ QUICK ACTIONS GRID ============ */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-card:hover {
    transform: translateY(-2px);
}

.action-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1976D2;
}

.action-title {
    font-weight: 600;
    font-size: 14px;
}

.action-subtitle {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* ============ NAV GRID (from tenant-dashboard.html) ============ */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.nav-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-card:hover {
    transform: translateY(-2px);
}

.nav-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #1976D2;
}

/* ============ PROPERTY GRID LAYOUT - FIXED RESPONSIVE ============ */

/* Base property grid - Desktop default (3 columns) */
.properties-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.property-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    max-width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Property Image */
.property-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    position: relative;
}

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

/* Property Status Badges */
.property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.status-available {
    background: #10b981;
}

.status-occupied, .status-rented {
    background: #f59e0b;
}

.edit-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    color: white;
    z-index: 1;
}

.student-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #7B1FA2;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    color: white;
    z-index: 1;
}

.favorite-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
    z-index: 1;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 48px;
}

/* Property Details */
.property-details {
    padding: 16px;
}

.property-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.property-location {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.property-price {
    font-size: 18px;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 12px;
}

/* Property Buttons */
.property-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.property-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.btn-edit {
    background: #1976D2;
    color: white;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.rent-btn {
    width: 100%;
    padding: 10px;
    background: #1976D2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.rent-btn:hover {
    background: #1565C0;
}

.renew-btn {
    background: #10b981;
}

.renew-btn:hover {
    background: #059669;
}

/* ============ RESPONSIVE BREAKPOINTS ============ */

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .property-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 220px;
    }
    
    .properties-flex {
        gap: 16px;
        padding: 16px;
    }
    
    .property-image {
        height: 180px;
    }
}

/* Mobile: 1 column - FULL WIDTH */
@media (max-width: 768px) {
    .property-card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .properties-flex {
        gap: 16px;
        padding: 16px;
        flex-direction: column;
    }
    
    .property-image {
        height: 220px;
    }
    
    .section {
        padding: 12px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .actions-grid {
        gap: 10px;
    }
    
    .action-card {
        padding: 12px;
    }
    
    .action-icon {
        font-size: 24px;
    }
    
    .action-title {
        font-size: 12px;
    }
    
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .property-card {
        flex: 1 1 100%;
        min-width: 100%;
        width: 100%;
    }
    
    .properties-flex {
        gap: 12px;
        padding: 12px;
        flex-direction: column;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-title {
        font-size: 15px;
        white-space: normal;
    }
    
    .property-location {
        white-space: normal;
        word-break: break-word;
    }
    
    .property-features {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .property-price {
        font-size: 16px;
    }
    
    .rent-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .house-card {
        min-width: 100%;
    }
}

/* ============ SPECIFIC CONTAINERS ============ */

/* For the main dashboard section */
.section .properties-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.section .property-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

@media (max-width: 992px) {
    .section .property-card {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .section .property-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .section .properties-flex {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
    }
}

/* For the properties tab/dashboard content */
#dashboardContent .properties-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

#dashboardContent .property-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

@media (max-width: 992px) {
    #dashboardContent .property-card {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    #dashboardContent .property-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    #dashboardContent .properties-flex {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
    }
}

/* For the browse properties grid */
#propertiesGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

#propertiesGrid .property-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

@media (max-width: 992px) {
    #propertiesGrid .property-card {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    #propertiesGrid .property-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    #propertiesGrid {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
    }
}

/* Student houses grid */
.houses-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.house-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.house-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.house-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    position: relative;
}

.house-details {
    padding: 16px;
}

.house-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.house-location {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.school-name {
    font-size: 11px;
    color: #7B1FA2;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.badge-rooms {
    background: #e3f2fd;
    color: #1976D2;
}

.badge-beds {
    background: #e8f5e9;
    color: #10b981;
}

.house-price {
    font-size: 16px;
    font-weight: 700;
    color: #7B1FA2;
}

@media (max-width: 992px) {
    .house-card {
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .house-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .houses-flex {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
    }
    
    .house-image {
        height: 200px;
    }
}

/* ============ PAYMENT ITEMS ============ */
.payment-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.payment-tenant {
    font-weight: 600;
}

.payment-date {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.payment-amount {
    font-weight: 700;
    color: #10b981;
    font-size: 16px;
}

/* ============ CURRENT RENTAL CARD (from tenant-dashboard.html) ============ */
.current-rental-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.due-date-info {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.overdue-badge {
    background: #ffebee;
    color: #c62828;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    background: white;
    border-radius: 16px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
}

/* ============ LOADING ============ */
.loading {
    text-align: center;
    padding: 60px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #1976D2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-spinner {
    width: clamp(30px, 10vw, 48px);
    height: clamp(30px, 10vw, 48px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(12px, 3.5vw, 16px);
    margin-top: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============ BOTTOM NAVIGATION ============ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #666;
}

.nav-item.active {
    color: #1976D2;
}

.nav-icon {
    font-size: 20px;
}

.nav-label {
    font-size: 10px;
}

/* ============ PROFILE SECTION ============ */
.profile-section {
    padding: 20px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1976D2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 40px;
    color: white;
    overflow: hidden;
    position: relative;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #1976D2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

/* ============ FORMS ============ */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976D2;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #999;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
}

.input-check {
    position: absolute;
    right: 12px;
    top: 12px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

/* ============ BUTTONS ============ */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}

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

.btn-danger {
    background: #ef4444;
    color: white;
    margin-top: 12px;
}

.btn-outline {
    background: none;
    border: 1px solid #ccc;
    color: #666;
}

.btn-warning {
    background: #6c757d;
    color: white;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* ============ 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;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

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

/* ============ LOGIN STYLES (from login.html) ============ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 32px 24px;
    animation: fadeInUp 0.5s ease-out;
}

.logo-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logo-wrapper i {
    font-size: 40px;
    color: white;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
}

.forgot-password a {
    color: #1976D2;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    margin: 0 16px;
    color: #666;
    font-size: 14px;
}

.biometric-container {
    text-align: center;
    margin: 24px 0;
}

.biometric-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(25,118,210,0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.biometric-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.biometric-icon {
    font-size: 32px;
    color: #1976D2;
}

.biometric-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.register-link a {
    color: #1976D2;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

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

/* ============ REGISTRATION STYLES (from registration.html) ============ */
.content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card {
    background: #e3f2fd;
    border-left: 4px solid #1976D2;
}

.role-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.role-card {
    flex: 1;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.role-card.selected {
    border-color: #1976D2;
    background: rgba(25,118,210,0.05);
}

.role-card i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #1976D2;
}

.role-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.role-card p {
    font-size: 11px;
    color: #666;
}

.row {
    display: flex;
    gap: 12px;
}

.row > * {
    flex: 1;
}

.calling-code {
    display: inline-block;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    border: 1.5px solid #e0e0e0;
}

.terms {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox.checked {
    background: #1976D2;
    border-color: #1976D2;
    color: white;
}

.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 11px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #666;
}

.req-item.valid {
    color: #10b981;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.country-option {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.country-option:hover {
    background: #f5f5f5;
}

.country-option.selected {
    background: rgba(25,118,210,0.1);
}

/* ============ TABS (from tenant-dashboard.html) ============ */
.tab-bar {
    display: flex;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #1976D2;
    border-bottom-color: #1976D2;
}

.tab-content {
    display: none;
    padding: 16px;
}

.tab-content.active {
    display: block;
}

/* ============ SEARCH (from property-browse.html) ============ */
.properties-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.properties-search input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
}

.properties-search button {
    padding: 10px 16px;
    background: #1976D2;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.search-container {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px 12px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 16px;
    outline: none;
}

.filter-btn {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: #666;
}

.location-selector {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
}

.location-selector i {
    color: #1976D2;
    margin-right: 8px;
}

/* ============ FILTERS (from property-browse.html) ============ */
.filters-scroll {
    padding: 12px 16px;
    overflow-x: auto;
    white-space: nowrap;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 13px;
}

.filter-chip.active {
    background: #1976D2;
    color: white;
}

.remove-filter {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 6px;
    color: inherit;
}

/* ============ FILTER SHEET (from property-browse.html) ============ */
.filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.filter-sheet.open {
    transform: translateY(0);
}

.filter-sheet-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.filter-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

.filter-option.active {
    background: #1976D2;
    color: white;
}

.range-slider {
    padding: 20px 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

/* ============ IMAGE UPLOAD (from add-property.html) ============ */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

.main-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: #1976D2;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
}

.add-img-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1;
    color: #666;
}

.image-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.image-actions button {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.image-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.image-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

/* ============ AMENITIES (from add-property.html) ============ */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amenity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.amenity-card.selected {
    border-color: #1976D2;
    background: rgba(25,118,210,0.05);
}

.amenity-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.amenity-name {
    font-size: 11px;
    text-align: center;
}

/* ============ SWITCH TOGGLE ============ */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1976D2;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ============ INFO BANNER ============ */
.info-banner {
    background: #fff3e0;
    border-radius: 12px;
    padding: 12px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #ed6c02;
}

/* ============ SPLASH SCREEN (from splash.html) ============ */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 50%, #7B1FA2 100%);
    overflow: hidden;
}

.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -20%;
    right: -20%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: waveMove 4s ease-in-out infinite;
}

.wave-1 {
    height: 80px;
    bottom: -40px;
    animation-delay: 0s;
}

.wave-2 {
    height: 120px;
    bottom: -20px;
    animation-delay: 0.5s;
    background: rgba(255, 255, 255, 0.04);
}

.wave-3 {
    height: 160px;
    bottom: 0px;
    animation-delay: 1s;
    background: rgba(255, 255, 255, 0.03);
}

.wave-4 {
    height: 200px;
    bottom: 20px;
    animation-delay: 1.5s;
    background: rgba(255, 255, 255, 0.02);
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(2%) translateY(-10px); }
}

.logo-container {
    width: clamp(100px, 40vw, 200px);
    height: clamp(100px, 40vw, 200px);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: logoScale 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0.3);
}

@keyframes logoScale {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.logo-icon {
    font-size: clamp(60px, 20vw, 100px);
    color: #1976D2;
}

.app-name {
    font-size: clamp(28px, 12vw, 48px);
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeSlideUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.tagline {
    font-size: clamp(14px, 4.5vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1.5px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
    animation: fadeSlideUp 1.5s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.version {
    position: fixed;
    bottom: 16px;
    right: 16px;
    color: rgba(255, 255, 255, 0.3);
    font-size: clamp(10px, 3vw, 14px);
}

/* ============ STUDENT HOUSE STYLES (from student-house-detail.html) ============ */
.image-slider {
    position: relative;
    height: 250px;
    background: #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.slider-image.active {
    display: block;
}

.slider-nav {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-dot.active {
    background: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.slider-arrow.prev {
    left: 12px;
}

.slider-arrow.next {
    right: 12px;
}

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

.info-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
}

.info-label {
    font-size: 11px;
    color: #666;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    margin: 12px 0;
}

.progress-fill {
    background: #10b981;
    border-radius: 10px;
    height: 100%;
    width: 0%;
}

.unit-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.unit-header {
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.unit-title {
    font-weight: 600;
}

.unit-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.unit-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.unit-occupied {
    background: #ffebee;
    color: #c62828;
}

.unit-details {
    padding: 16px;
    display: none;
    border-top: 1px solid #e0e0e0;
}

.unit-details.open {
    display: block;
}

.occupant-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-info {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.student-badge-chip {
    background: #f3e5f5;
    color: #7B1FA2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.gender-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.gender-mixed {
    background: #8b5cf6;
}

.gender-male {
    background: #3b82f6;
}

.gender-female {
    background: #ec4899;
}

/* ============ WALLET STYLES (from landlord-wallet.html) ============ */
.balance-card {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    border-radius: 24px;
    padding: 24px;
    color: white;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0;
}

.balance-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.amount-wrapper {
    position: relative;
}

.max-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1976D2;
    font-weight: 600;
    cursor: pointer;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cancel-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    margin-left: 8px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    font-size: 14px;
}

.transaction-date {
    font-size: 11px;
    color: #666;
}

.transaction-amount {
    font-weight: 700;
    font-size: 16px;
}

.amount-positive {
    color: #10b981;
}

.amount-negative {
    color: #ef4444;
}

/* ============ CHAT STYLES (from chat-detail.html & chat-list.html) ============ */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-row {
    display: flex;
    width: 100%;
}

.message-row.own {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 20px;
    position: relative;
}

.message-bubble.own {
    background: #1976D2;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.other {
    background: #e4e6eb;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-text {
    font-size: 14px;
    word-wrap: break-word;
}

.message-image {
    max-width: 200px;
    border-radius: 12px;
    cursor: pointer;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.message-status {
    font-size: 10px;
    margin-left: 4px;
}

.typing-indicator {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #e4e6eb;
    border-radius: 20px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.input-container {
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.attach-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.message-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    max-height: 100px;
}

.send-btn {
    background: #1976D2;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.conversation-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.conversation-item:hover {
    transform: translateY(-2px);
}

.pinned-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(25,118,210,0.1);
    padding: 4px 8px;
    border-radius: 0 12px 0 12px;
    font-size: 12px;
}

.conversation-content {
    display: flex;
    padding: 16px;
    gap: 12px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
}

.details {
    flex: 1;
}

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

.name {
    font-weight: 600;
    font-size: 16px;
}

.property-tag {
    background: rgba(25,118,210,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    color: #1976D2;
}

.last-message {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time {
    font-size: 11px;
    color: #999;
}

.unread-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.property-banner {
    background: white;
    margin: 8px;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.property-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #e0e0e0;
}

.reaction-picker {
    background: white;
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
}

.reaction-emoji {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.reaction-emoji:hover {
    transform: scale(1.2);
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ============ TENANT MANAGEMENT STYLES (from tenants-management.html) ============ */
.tenant-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
}

.tenant-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tenant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(25,118,210,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tenant-info {
    flex: 1;
}

.tenant-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.tenant-email {
    font-size: 12px;
    color: #666;
}

.reminder-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.detail-row {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    width: 100px;
    font-weight: 500;
    color: #666;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* ============ MAINTENANCE REQUEST STYLES (from maintenance-requests.html) ============ */
.request-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.request-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    background: #fff3e0;
    color: #f59e0b;
}

.status-in_progress {
    background: #e3f2fd;
    color: #1976D2;
}

.status-completed {
    background: #e8f5e9;
    color: #10b981;
}

.status-cancelled {
    background: #ffebee;
    color: #ef4444;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
}

.priority-high {
    background: #ffebee;
    color: #ef4444;
}

.priority-medium {
    background: #fff3e0;
    color: #f59e0b;
}

.priority-low {
    background: #e8f5e9;
    color: #10b981;
}

.request-meta {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    font-size: 12px;
    color: #666;
}

.request-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
}

.modal-select,
.modal-textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.error-box {
    background: #ffebee;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 13px;
}

.chip.selected {
    background: #1976D2;
    color: white;
}

/* ============ PAYMENT OPTIONS ============ */
.payment-option {
    transition: background 0.2s;
}

.payment-option:hover {
    background: #f5f5f5;
}

/* ============ SUMMARY CARD (from create-student-house.html) ============ */
.summary-card {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

/* ============ PAGINATION (from withdrawal-history.html) ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

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

/* ============ RADIO GROUP (from receiving-account-setup.html) ============ */
.radio-group {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
}

.radio-option:last-child {
    border-bottom: none;
}

.radio-option.selected {
    background: rgba(25,118,210,0.05);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

.radio-option.selected .radio-custom {
    border-color: #1976D2;
}

.radio-option.selected .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: #1976D2;
    border-radius: 50%;
}

.radio-title {
    font-weight: 500;
}

.radio-subtitle {
    font-size: 12px;
    color: #666;
}

/* ============ ERROR CONTAINER ============ */
.error-container {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.error-container i {
    font-size: 64px;
    margin-bottom: 16px;
    color: #ef4444;
}

.error-container h2 {
    margin-bottom: 16px;
    color: #333;
}

/* ============ IMAGE NAVIGATION (from property-browse.html) ============ */
.image-nav {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 1;
}

.image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.image-dot.active {
    background: white;
    width: 8px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}

.nav-arrow.prev {
    left: 8px;
}

.nav-arrow.next {
    right: 8px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    padding-bottom: 70px;
    min-height: calc(100vh - 70px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
}

/* ============ ANIMATIONS ============ */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* ============ CRITICAL FIXES FOR PROPERTY CARDS ============ */

/* Fix for container width */
#app, .main-content, #dashboardContent, .section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Property Card Container */
.properties-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Individual Property Card */
.property-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Property Image Container */
.property-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    flex-shrink: 0;
}

/* No Image Placeholder */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #aaa;
    font-size: 48px;
}

/* Property Details */
.property-details {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Property Title */
.property-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Property Location */
.property-location {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

/* Property Features */
.property-features {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* Property Price */
.property-price {
    font-size: 18px;
    font-weight: 700;
    color: #1976D2;
    margin-top: 4px;
}

/* Rent Button */
.rent-btn {
    width: 100%;
    padding: 10px;
    background: #1976D2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
    text-align: center;
}

.rent-btn:hover {
    background: #1565C0;
}

/* Property Status Badge */
.property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.status-available {
    background: #10b981;
}

.status-occupied {
    background: #f59e0b;
}

/* Edit Badge */
.edit-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    color: white;
    z-index: 2;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .property-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 220px;
    }
    
    .properties-flex {
        gap: 16px;
        padding: 16px;
    }
}

/* Mobile: 1 column FULL WIDTH */
@media (max-width: 768px) {
    .property-card {
        flex: 1 1 100%;
        min-width: 100%;
        width: 100%;
        margin-bottom: 0;
    }
    
    .properties-flex {
        gap: 16px;
        padding: 16px;
        flex-direction: column;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-details {
        padding: 14px;
    }
    
    .property-title {
        font-size: 15px;
    }
    
    .property-price {
        font-size: 17px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .property-image {
        height: 180px;
    }
    
    .property-details {
        padding: 12px;
    }
    
    .property-features {
        gap: 8px;
        font-size: 12px;
    }
    
    .rent-btn {
        padding: 8px;
        font-size: 13px;
    }
}

/* Fix for dashboard content */
#dashboardContent {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix for section containers */
.section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .section {
        padding: 12px;
    }
}

/* Fix for stats grid on mobile */
@media (max-width: 768px) {
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Fix for action cards on mobile */
@media (max-width: 768px) {
    .actions-grid {
        gap: 10px;
    }
    
    .action-card {
        padding: 12px;
    }
    
    .action-icon {
        font-size: 24px;
    }
    
    .action-title {
        font-size: 12px;
    }
    
    .action-subtitle {
        font-size: 10px;
    }
}