/* MICE Networking App - Mobile UI */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600&display=swap');

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #0d0f14;
    color: #f0f2f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile viewport wrapper */
.app-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #0d0f14;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status bar simulation */
.status-bar {
    background-color: #0d0f14;
    padding: 12px 20px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-bar .time {
    font-size: 15px;
    font-weight: 700;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Top app bar */
.app-bar {
    background-color: #0d0f14;
    padding: 10px 20px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1e2230;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-bar .back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-color: #1a1e2a;
    border: 1px solid #2a2f40;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #f0f2f5;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.app-bar .back-btn:hover {
    background-color: #252a3a;
}

.app-bar .page-title {
    font-size: 17px;
    font-weight: 600;
    color: #f0f2f5;
    flex: 1;
    margin: 0;
}

.app-bar .action-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-color: #1a1e2a;
    border: 1px solid #2a2f40;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f0f2f5;
    flex-shrink: 0;
}

/* Event badge / header accent */
.event-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1a1e2a;
    border: 1px solid #2d364d;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #8b9bbf;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.event-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4ade80;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Scrollable content area */
.page-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px;
}

/* ================= PROFILE PAGE ================= */

.profile-hero {
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    margin-bottom: 16px;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #1e2333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #a5b4fc;
    font-weight: 600;
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #f0f2f5;
    margin: 0 0 4px;
}

.profile-designation {
    font-size: 14px;
    color: #8b9bbf;
    margin: 0 0 6px;
}

.profile-company {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    margin: 0 0 20px;
}

/* Contact info cards */
.info-section {
    padding: 0 20px;
    margin-top: 4px;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4a5270;
    margin-bottom: 10px;
    margin-top: 20px;
}

.info-card {
    background-color: #141720;
    border: 1px solid #1e2430;
    border-radius: 16px;
    overflow: hidden;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 14px;
    border-bottom: 1px solid #1e2430;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
}

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

.info-row:hover {
    background-color: #1a1e2a;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.icon-phone { background-color: #1a3a2a; color: #4ade80; }
.icon-email { background-color: #1a2a3a; color: #60a5fa; }
.icon-company { background-color: #2a1e3a; color: #a78bfa; }
.icon-title { background-color: #3a2a1a; color: #fb923c; }

.info-detail {
    flex: 1;
}

.info-label {
    font-size: 11px;
    color: #4a5270;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    color: #d4d9e8;
    font-weight: 500;
}

/* Action buttons */
.action-row {
    display: flex;
    gap: 12px;
    padding: 20px 20px 0;
}

.btn-primary-app {
    flex: 1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 14px;
    padding: 14px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    text-decoration: none;
}

.btn-primary-app:hover {
    opacity: 0.9;
    color: #fff;
}

.btn-primary-app:active {
    transform: scale(0.97);
}

.btn-secondary-app {
    flex: 1;
    background-color: #141720;
    border: 1px solid #2a2f40;
    border-radius: 14px;
    padding: 14px;
    color: #c5cce0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    text-decoration: none;
}

.btn-secondary-app:hover {
    background-color: #1a1e2a;
    color: #c5cce0;
}

.btn-secondary-app:active {
    transform: scale(0.97);
}

.btn-bookmarked {
    background: linear-gradient(135deg, #854d0e, #ca8a04);
    border-color: transparent;
    color: #fff;
}

/* Scanned meta */
.scan-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #4a5270;
    padding: 16px 20px 0;
}

/* ================= ATTENDEES LIST ================= */

.list-search {
    padding: 12px 20px;
    position: sticky;
    top: 60px;
    background-color: #0d0f14;
    z-index: 90;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5270;
    font-size: 16px;
}

.search-input-wrap input {
    width: 100%;
    background-color: #141720;
    border: 1px solid #1e2430;
    border-radius: 12px;
    padding: 11px 14px 11px 42px;
    color: #f0f2f5;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-input-wrap input::placeholder {
    color: #4a5270;
}

.search-input-wrap input:focus {
    border-color: #6366f1;
}

.attendee-count {
    padding: 0 20px 10px;
    font-size: 12px;
    color: #4a5270;
}

.attendee-count span {
    color: #6366f1;
    font-weight: 600;
}

.attendee-list {
    padding: 0 20px;
}

.attendee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background-color: #141720;
    border: 1px solid #1e2430;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: default;
    opacity: 0.8;
}

.attendee-item.is-scanned {
    border-color: #6366f1;
    opacity: 1;
    cursor: pointer;
    text-decoration: none;
    display: flex;
}

.attendee-item.is-scanned:hover {
    background-color: #1a1e2a;
}

.attendee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.attendee-info {
    flex: 1;
}

.attendee-name {
    font-size: 14px;
    font-weight: 600;
    color: #d4d9e8;
    margin-bottom: 2px;
}

.attendee-role {
    font-size: 12px;
    color: #4a5270;
}

.attendee-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.badge-scanned {
    background-color: #1a2a3a;
    color: #60a5fa;
}

.badge-locked {
    background-color: #1a1e2a;
    color: #3a4060;
}

/* ================= BOTTOM NAV ================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background-color: #0d0f14;
    border-top: 1px solid #1e2430;
    display: flex;
    padding: 10px 0 24px;
    z-index: 200;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #4a5270;
    transition: color 0.15s;
    padding: 4px 0;
}

.nav-item.active {
    color: #6366f1;
}

.nav-item:hover {
    color: #8b9bbf;
}

.nav-icon {
    font-size: 22px;
    position: relative;
}

.nav-icon .badge-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: #6366f1;
    border-radius: 50%;
    border: 2px solid #0d0f14;
}

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

/* Scan button (center FAB style) */
.nav-scan {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    padding-top: 0;
}

.nav-scan .scan-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: -22px;
    border: 3px solid #0d0f14;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.nav-scan .nav-label {
    color: #8b9bbf;
    font-size: 10px;
    font-weight: 500;
}

/* ================= BOOKMARKS PAGE ================= */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #6070a0;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 13px;
    color: #3a4060;
    line-height: 1.6;
}

/* ================= VCARDS PAGE ================= */

.vcard-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background-color: #141720;
    border: 1px solid #1e2430;
    border-radius: 14px;
    margin-bottom: 10px;
}

.vcard-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #1a2a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #60a5fa;
    flex-shrink: 0;
}

.vcard-info {
    flex: 1;
}

.vcard-name {
    font-size: 14px;
    font-weight: 600;
    color: #d4d9e8;
    margin-bottom: 2px;
}

.vcard-date {
    font-size: 11px;
    color: #4a5270;
}

.vcard-download-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: #1a2a3a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    cursor: pointer;
    font-size: 14px;
}

/* ================= SCAN PAGE ================= */

.scan-viewfinder {
    margin: 20px;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: #141720;
    border: 2px solid #1e2430;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.scan-corners {
    position: absolute;
    inset: 20px;
}

.scan-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: #6366f1;
    border-style: solid;
}

.scan-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }

.scan-line {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    animation: scan-move 2s ease-in-out infinite;
}

@keyframes scan-move {
    0% { top: 20px; }
    100% { top: calc(100% - 22px); }
}

.scan-camera-icon {
    font-size: 48px;
    color: #2a2f40;
}

.scan-instruction {
    font-size: 14px;
    color: #4a5270;
    text-align: center;
    padding: 0 40px;
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: calc(100% - 40px);
    max-width: 390px;
}

.toast {
    background-color: #1a1e2a;
    border: 1px solid #2a2f40;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slide-down 0.3s ease;
}

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

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-icon.success { background-color: #1a3a2a; }
.toast-icon.info { background-color: #1a2a3a; }

.toast-text {
    font-size: 13px;
    color: #c5cce0;
    font-weight: 500;
}

/* Page hidden utility */
.page { display: none; }
.page.active { display: flex; flex-direction: column; flex: 1; }
