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

/* CSS Variables for theming */
:root {
    --bg-gradient-start: #0a0e1a;
    --bg-gradient-mid: #1a2332;
    --bg-gradient-end: #0f3c4a;
    --pattern-color-1: rgba(74, 144, 164, 0.1);
    --pattern-color-2: rgba(44, 95, 122, 0.1);
    --phone-bg: rgba(10, 14, 26, 0.95);
    --phone-border: rgba(255, 255, 255, 0.05);
    --phone-shadow: rgba(0,0,0,0.5);
    --screen-bg: rgba(10, 14, 26, 0.95);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-border-focus: rgba(74, 144, 164, 0.5);
    --button-bg: rgba(255, 255, 255, 0.1);
    --button-border: rgba(255, 255, 255, 0.2);
    --header-bg: rgba(10, 14, 26, 0.8);
    --header-border: rgba(255, 255, 255, 0.1);
    --modal-bg: rgba(26, 35, 50, 0.95);
}

body.light-theme {
    --bg-gradient-start: #f0f4f8;
    --bg-gradient-mid: #e2e8f0;
    --bg-gradient-end: #cbd5e1;
    --pattern-color-1: rgba(74, 144, 164, 0.05);
    --pattern-color-2: rgba(44, 95, 122, 0.05);
    --phone-bg: #ffffff;
    --phone-border: rgba(0, 0, 0, 0.1);
    --phone-shadow: rgba(0,0,0,0.2);
    --screen-bg: #f5f7fa;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-border-focus: #4a90a4;
    --button-bg: #e2e8f0;
    --button-border: #cbd5e1;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: #e2e8f0;
    --modal-bg: rgba(255, 255, 255, 0.98);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Background pattern effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--pattern-color-1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--pattern-color-2) 0%, transparent 50%);
    pointer-events: none;
}

.phone-frame {
    width: 375px;
    height: 667px;
    background: var(--phone-bg);
    border-radius: 40px;
    box-shadow: 0 20px 60px var(--phone-shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--phone-border);
    transition: all 0.3s ease;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--screen-bg);
    transition: background 0.3s ease;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.login-screen {
    background: transparent;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.logo {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: block;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(74, 144, 164, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

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

.btn-primary {
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
    color: white;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(74, 144, 164, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--button-border);
}

.header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid var(--header-border);
    transition: all 0.3s ease;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-subtitle {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 2px;
}

.back-btn {
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--button-border);
}

.profile-btn {
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: var(--button-border);
}

.content {
    flex: 1;
    background: transparent;
    overflow-y: auto;
    padding: 20px;
}

.welcome-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.welcome-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.agenda-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visit-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid rgba(203, 213, 225, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
}

.visit-item.urgent {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

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

.visit-date {
    display: flex;
    flex-direction: column;
}

.visit-day {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.visit-time {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

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

.urgent-badge {
    background: rgba(254, 243, 199, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.visit-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 6px;
}

.visit-property {
    font-size: 12px;
    color: #4a90a4;
    font-weight: 500;
    margin-bottom: 4px;
}

.visit-tech {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.visit-actions {
    display: flex;
    gap: 8px;
}

.visit-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.visit-btn.confirm {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.visit-btn.confirm:hover {
    background: rgba(16, 185, 129, 0.3);
}

.visit-btn.reschedule {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.visit-btn.reschedule:hover {
    background: rgba(99, 102, 241, 0.3);
}

.urgent-issues-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.issue-item {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 4px solid #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left-width: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.issue-item:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, 0.15);
}

.issue-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 6px;
}

.issue-item-property {
    font-size: 12px;
    color: #4a90a4;
    font-weight: 500;
    margin-bottom: 4px;
}

.issue-item-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.property-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.property-card:hover {
    transform: translateY(-2px);
    border-color: #4a90a4;
    background: rgba(255, 255, 255, 0.08);
}

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

.property-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.property-address {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.property-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #4a90a4;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

.issue-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.issue-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

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

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

.issue-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-new {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-progress {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.status-resolved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.issue-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.issue-location {
    color: #4a90a4;
    font-weight: 500;
}

.fab {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.4);
    transition: transform 0.2s;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    width: 85%;
    max-width: 320px;
    max-height: 70%;
    overflow-y: auto;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.menu-item {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.menu-item:hover {
    background: var(--button-bg);
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

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

.menu-item.danger {
    color: #ef4444;
}

.menu-item.danger .menu-text {
    color: #ef4444;
}

.modal-version {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 15px;
    font-family: monospace;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.filter-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tab {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab.active {
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
    color: white;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(74, 144, 164, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.photo-upload {
    border: 2px dashed rgba(74, 144, 164, 0.5);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: rgba(74, 144, 164, 0.05);
    transition: all 0.3s;
}

.photo-upload:hover {
    background: rgba(74, 144, 164, 0.1);
    border-color: #4a90a4;
}

.upload-icon {
    font-size: 40px;
    color: #4a90a4;
    margin-bottom: 10px;
}

.upload-text {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.detail-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

.photo-preview {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.message {
    margin-bottom: 15px;
}

.message-author {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.message-bubble {
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.message-resident .message-bubble {
    background: rgba(74, 144, 164, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(74, 144, 164, 0.3);
}

.message-admin .message-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input input:focus {
    outline: none;
    border-color: rgba(74, 144, 164, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.chat-attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.attachment-preview:hover {
    background: rgba(255, 255, 255, 0.08);
}

.remove-attachment {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attach-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.attach-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.send-btn {
    background: #4a90a4;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #3a7a8a;
}

.message-attachment {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.2s;
}

.message-attachment:hover {
    background: rgba(255, 255, 255, 0.08);
}

.issue-assignee {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.assignee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.assignee-avatar.tech {
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
}

.assignee-avatar.cleaning {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.assignee-avatar.plumber {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.assignee-avatar.electrician {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.assignee-info {
    flex: 1;
}

.assignee-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.assignee-role {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.issue-unassigned {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.unassigned-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.5;
}

.unassigned-text {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

.assigned-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.assigned-header {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.assigned-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assigned-person .assignee-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.assigned-details {
    flex: 1;
}

.assigned-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.assigned-role {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.assigned-contact {
    font-size: 13px;
    color: #4a90a4;
    font-weight: 500;
}

/* Login Form Styles */
.login-form {
    width: 100%;
    max-width: 300px;
}

.login-form .input-group {
    margin-bottom: 15px;
}

.login-form .input-group label {
    display: block;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.login-form .input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s;
}

.login-form .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form .input-group input:focus {
    outline: none;
    border-color: rgba(74, 144, 164, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Demo Section Styles */
.demo-section {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.demo-divider {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-demo {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    padding: 18px 20px;
    text-align: left;
    position: relative;
    transition: all 0.3s;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.demo-role {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.demo-info {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
}

/* Theme Toggle Button */
/* Theme Toggle Switch */
.theme-toggle-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 9999;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: 0.3s;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-slider:before {
    position: absolute;
    content: "🌙";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
    transition: 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

input:checked + .theme-slider {
    background: var(--card-bg);
}

input:checked + .theme-slider:before {
    transform: translateX(26px);
    content: "☀️";
}

.theme-slider:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Version Number */
.version-number {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    z-index: 9999;
    font-family: monospace;
}

/* Contact Footer Styles */
.contact-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #47b2e4 0%, #209dd8 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.contact-footer.show {
    transform: translateY(0);
}

.contact-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-content p {
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.contact-form {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-form input[type="tel"] {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    min-width: 150px;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input[type="tel"]:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.contact-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 18px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Show footer after a delay */
body {
    animation: showFooter 2s ease-in-out 3s forwards;
}

@keyframes showFooter {
    to {
        padding-bottom: 80px; /* Space for footer */
    }
}

.contact-footer {
    animation: slideUp 0.5s ease-in-out 3s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Global Back Button */
.global-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.global-back-btn:hover {
    background: var(--input-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Global Contact Bubble */
.global-contact-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(74, 144, 164, 0.3);
}

.global-contact-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 164, 0.4);
}

.contact-bubble-icon {
    font-size: 24px;
    color: white;
}

/* Contact Modal Styles */
.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-form input[type="tel"] {
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: var(--input-bg);
}

.contact-btn {
    background: linear-gradient(135deg, #4a90a4 0%, #2c5f7a 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 164, 0.3);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .global-back-btn {
        top: 10px;
        left: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .global-contact-bubble {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .contact-bubble-icon {
        font-size: 20px;
    }
    
    .contact-footer {
        padding: 10px 16px;
    }
    
    .contact-content h3 {
        font-size: 14px;
    }
    
    .contact-content p {
        font-size: 11px;
    }
    
    .contact-form {
        flex-direction: column;
        gap: 6px;
    }
    
    .contact-form input[type="tel"] {
        min-width: 100%;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .contact-btn {
        padding: 6px 16px;
        font-size: 13px;
        width: 100%;
    }
    
    .contact-links {
        gap: 12px;
    }
    
    .contact-link {
        font-size: 11px;
    }
}
