/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Wesphyr Dreamy Theme Colors */
    --morning-mist: #F4F5FA;
    --warm-cloud-pink: #F7D7E8;
    --sky-whisper-blue: #C9DFFF;
    --lavender-breeze: #B8A7E8;
    --lavender-dark: #8B7BC6;
    --ink-soft-gray: #2D2D2D;
    
    /* Legacy variable mapping */
    --bg: #F4F5FA;
    --text: #2D2D2D;
    --text-light: #6A6A6A;
    --success: #2ecc71;
    --danger: #e74c3c;
    --shadow: rgba(0, 0, 0, 0.05);
}

html {
    /* Prevent text size adjustment on orientation change - iOS Safari */
    -webkit-text-size-adjust: 100%;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--morning-mist);
    color: var(--ink-soft-gray);
    line-height: 1.5;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari viewport fix */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
}

/* Hide all content until JavaScript loads and determines which page to show */
body:not(.loaded) .container {
    opacity: 0;
    visibility: hidden;
}

body.loaded .container {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

.container {
    width: 100%;
    max-width: 900px; /* Larger on desktop/tablet */
    margin: 0 auto;
    padding: 40px;
    /* iOS safe area support for notch devices */
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
    padding-top: max(40px, env(safe-area-inset-top));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .container {
        max-width: 600px;
        padding: 30px;
        padding-left: max(30px, env(safe-area-inset-left));
        padding-right: max(30px, env(safe-area-inset-right));
    }
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Landing Page */
#landing-page {
    text-align: center;
    padding: 60px 40px 40px;
    max-width: 600px;
    margin: 0 auto;
    gap: 40px;
}

#landing-page.page.active {
    display: flex;
    flex-direction: column;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 80px;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

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

#landing-page h1 {
    font-size: 56px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 2px;
    color: var(--ink-soft-gray);
    background: linear-gradient(135deg, var(--ink-soft-gray), var(--lavender-breeze));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 16px;
    color: #6A6A6A;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

.landing-explanation {
    font-size: 16px;
    color: #2D2D2D;
    font-weight: 400;
    line-height: 1.6;
    margin: 16px 0 8px 0;
    max-width: 420px;
}

.landing-explanation strong {
    font-weight: 600;
    color: #8B7BC6;
}

.landing-description {
    font-size: 14px;
    color: #6A6A6A;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 420px;
}

.landing-examples {
    margin: 24px 0;
    text-align: center;
}

.examples-label {
    font-size: 13px;
    color: #8B7BC6;
    font-weight: 500;
    margin-bottom: 12px;
}

.example-messages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.example-msg {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 400;
    color: #2D2D2D;
    border: 1px solid rgba(139, 123, 198, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.landing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
    max-width: 500px;
}

.feature-pill {
    background: linear-gradient(135deg, rgba(247, 215, 232, 0.6), rgba(184, 167, 232, 0.6));
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #2D2D2D;
    letter-spacing: 0.3px;
    border: 1px solid rgba(184, 167, 232, 0.4);
    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .feature-pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(184, 167, 232, 0.4);
        border-color: rgba(184, 167, 232, 0.6);
    }
}

.landing-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.footer-link {
    color: #8B7BC6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #2D2D2D;
    text-decoration: underline;
}

.footer-divider {
    color: #8B7BC6;
    font-size: 14px;
    opacity: 0.6;
}

.footer-copyright {
    color: #8B7BC6;
    font-size: 13px;
    opacity: 0.7;
    font-weight: 400;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px 24px;
    min-height: 48px; /* iOS minimum touch target */
    border: none;
    border-radius: 50px;
    font-size: 14px; /* Prevents zoom on iOS */
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    /* Better touch response */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--sky-whisper-blue));
    color: var(--ink-soft-gray);
}

.btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(135deg, #F7D7E8, #B8A7E8);
    color: #2D2D2D;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(184, 167, 232, 0.4);
}

/* Only add hover effects on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        box-shadow: 0 4px 20px rgba(184, 167, 232, 0.5);
        transform: scale(1.03);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    color: var(--ink-soft-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.9);
}

@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transform: scale(1.02);
    }
}

.btn-text {
    background: transparent;
    color: var(--text-light);
    padding: 12px;
    border: none;
    font-size: 13px;
    box-shadow: none;
}

.btn-text:hover {
    color: var(--ink-soft-gray);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft-gray);
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 14px;
    min-height: 48px; /* iOS minimum touch target */
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 14px; /* Prevents iOS zoom on focus */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    color: var(--ink-soft-gray);
    /* Better mobile input handling */
    -webkit-appearance: none;
    appearance: none;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23585858' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--lavender-breeze);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(216, 207, 255, 0.2);
}

/* Prevent zoom on input focus - iOS */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="password"],
    select {
        font-size: 16px;
    }
}

/* Auth Pages */
#signup-page,
#login-page {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 60px 50px;
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

#signup-page h2,
#login-page h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: left;
    letter-spacing: 0.5px;
    color: var(--ink-soft-gray);
}

.login-intro {
    margin-bottom: 40px;
    text-align: center;
}

/* Result Display */
.result {
    margin-top: 30px;
}

.success-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 2px solid var(--lavender-breeze);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(216, 207, 255, 0.2);
}

.success-box h3 {
    color: var(--ink-soft-gray);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.code-display {
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--lavender-breeze));
    border: none;
    border-radius: 16px;
    padding: 20px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 8px;
    margin: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink-soft-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.warning {
    color: var(--ink-soft-gray);
    font-size: 13px;
    margin: 20px 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Error Messages */
.error {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--danger);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--danger);
    font-size: 13px;
    margin-top: 16px;
    font-weight: 500;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.info {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    font-weight: 300;
}

/* Dashboard */
#dashboard-page {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 700px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(216, 207, 255, 0.2);
    gap: 20px;
}

.header-info {
    flex: 1;
}

.header h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    color: var(--ink-soft-gray);
}

.user-code {
    font-size: 14px;
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-badge {
    background: linear-gradient(135deg, #F7D7E8, #B8A7E8);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    color: #2D2D2D;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(184, 167, 232, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-btn {
    white-space: nowrap;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(216, 207, 255, 0.2);
    transition: all 0.2s ease;
}

.section:hover {
    border-color: rgba(216, 207, 255, 0.3);
    box-shadow: 0 4px 12px rgba(216, 207, 255, 0.1);
}

.section-header {
    margin-bottom: 20px;
}

.section h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
    color: var(--ink-soft-gray);
}

.section-description {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-weight: 300;
    line-height: 1.4;
}

.inbox-btn {
    width: 100%;
    max-width: 300px;
}

.help-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 300;
}

.visibility-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft-gray);
}

.contacts-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contacts-actions .btn {
    flex: 1;
    min-width: 160px;
}

/* Templates Grid */
.templates-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}

.template-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-soft-gray);
    letter-spacing: 0.3px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(247, 215, 232, 0.3), rgba(201, 223, 255, 0.3));
    border-radius: 12px;
    margin: 0;
}

.category-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.template-card {
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--lavender-breeze));
    border: none;
    border-radius: 20px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.template-card:not(.disabled):active {
    transform: scale(0.98);
    opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
    .template-card:not(.disabled):hover {
        box-shadow: 0 4px 15px rgba(199, 215, 255, 0.4);
        transform: scale(1.03);
    }
}

.template-expiry-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(88, 88, 88, 0.6);
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.2px;
}

.template-card .emoji {
    font-size: 24px;
    margin-bottom: 8px;
    display: none;
}

.template-card .label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft-gray);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.template-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-soft-gray);
    letter-spacing: 0.2px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Contacts List */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 100px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-card:active {
    background: rgba(255, 255, 255, 1);
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    .contact-card:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transform: scale(1.02);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-name {
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.3px;
    color: var(--ink-soft-gray);
}

.contact-code {
    font-size: 14px;
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
}

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

.icon-btn {
    background: transparent;
    border: 2px solid rgba(58, 58, 58, 0.1);
    padding: 8px;
    min-width: 44px; /* iOS minimum touch target */
    min-height: 44px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.icon-btn:active {
    background: rgba(58, 58, 58, 0.1);
    transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
    .icon-btn:hover {
        background: rgba(58, 58, 58, 0.05);
        border-color: rgba(58, 58, 58, 0.2);
    }
}

.empty-state {
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    font-size: 13px;
    letter-spacing: 0.3px;
    font-weight: 300;
}

.empty-state-enhanced {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin: 20px 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-soft-gray);
    margin: 0 0 8px 0;
}

.empty-subtitle {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    /* Prevent scrolling background on mobile */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: none;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.2s ease;
    /* Ensure content doesn't get cut off on small screens */
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .modal {
        padding: 12px;
        align-items: flex-end;
    }
    
    .modal-content {
        padding: 30px 20px;
        border-radius: 0;
        max-height: 85vh;
    }
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: left;
    letter-spacing: 0.3px;
    color: var(--ink-soft-gray);
}

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

/* Message Bubbles */
.message-bubble {
    padding: 10px 16px;
    border-radius: 20px;
    max-width: 70%;
    margin: 8px 0;
    animation: fadeOut 1m forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 1.4;
}

.message-sent {
    background: linear-gradient(135deg, var(--sky-whisper-blue), var(--lavender-breeze));
    align-self: flex-end;
    color: var(--ink-soft-gray);
}

.message-received {
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--lavender-breeze));
    align-self: flex-start;
    color: var(--ink-soft-gray);
}

@keyframes fadeOut {
    0% { opacity: 1; }
    99% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Message Sent Feedback */
.message-sent-feedback {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--sky-whisper-blue));
    color: var(--ink-soft-gray);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    animation: slideUpFade 0.3s ease;
    transition: opacity 0.3s ease;
}

/* New Message Notification */
.new-message-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--sky-whisper-blue), var(--lavender-breeze));
    color: var(--ink-soft-gray);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 15px;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.4s ease;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.new-message-notification:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 20px;
    animation: pulse 1s ease infinite;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

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

/* Messages Inbox Styling */
.messages-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.message-card {
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--lavender-breeze));
    border: none;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(58, 58, 58, 0.1);
}

.message-from {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-soft-gray);
}

.message-time {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

.message-card-body {
    margin-bottom: 12px;
}

.message-text {
    font-size: 18px;
    color: var(--ink-soft-gray);
    line-height: 1.5;
    margin-bottom: 8px;
}

.message-expires {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 300;
}

.expiry-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.expiry-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B7BC6, #B8A7E8);
    border-radius: 2px;
    transition: width 1s linear;
}

.expiry-text {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 300;
}

.message-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    color: var(--ink-soft-gray);
    touch-action: manipulation;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.reply {
    background: linear-gradient(135deg, var(--sky-whisper-blue), var(--lavender-breeze));
}

.action-btn.delete {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.25);
}

/* Responsive Design */

/* Tablet adjustments */
@media (max-width: 768px) {
    .container {
        max-width: 600px;
        padding: 30px;
        padding-left: max(30px, env(safe-area-inset-left));
        padding-right: max(30px, env(safe-area-inset-right));
    }

    #landing-page {
        padding: 50px 30px 30px;
        gap: 32px;
    }

    .logo {
        font-size: 72px;
    }

    #landing-page h1 {
        font-size: 48px;
    }

    .tagline {
        font-size: 15px;
    }

    .landing-description {
        font-size: 14px;
    }

    .feature-pill {
        font-size: 12px;
        padding: 8px 16px;
    }

    #signup-page,
    #login-page {
        padding: 50px 40px;
    }

    #signup-page h2,
    #login-page h2 {
        font-size: 28px;
    }

    #dashboard-page {
        padding: 40px;
    }

    .header {
        gap: 16px;
        margin-bottom: 32px;
        padding-bottom: 20px;
    }

    .header h2 {
        font-size: 24px;
    }

    .code-badge {
        font-size: 12px;
        padding: 3px 10px;
    }

    .section {
        padding: 20px;
    }

    .section h3 {
        font-size: 17px;
    }

    .search-container {
        gap: 10px;
        margin-bottom: 16px;
    }

    .search-input {
        padding: 12px 16px;
        min-height: 48px;
        font-size: 14px;
    }

    .search-container .btn {
        min-width: 100px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .contacts-actions {
        gap: 10px;
    }

    .contacts-actions .btn {
        min-width: 140px;
    }

    .category-templates {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .template-card {
        min-height: 80px;
        padding: 16px 14px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    #landing-page {
        padding: 30px 20px 20px;
        gap: 28px;
    }

    .logo {
        font-size: 64px;
    }

    #landing-page h1 {
        font-size: 38px;
    }

    .tagline {
        font-size: 14px;
    }

    .landing-description {
        font-size: 13px;
        max-width: 320px;
    }

    .landing-features {
        gap: 8px;
    }

    .feature-pill {
        font-size: 11px;
        padding: 7px 14px;
    }

    .footer-link {
        font-size: 13px;
    }

    #signup-page,
    #login-page,
    #dashboard-page {
        padding: 30px 20px;
        border-radius: 20px;
    }

    #signup-page h2,
    #login-page h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    #dashboard-page {
        min-height: 600px;
        padding: 24px 16px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        align-items: start;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .header-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .theme-selector {
        gap: 6px;
    }

    .theme-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .header h2 {
        font-size: 20px;
    }

    .user-code {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .code-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .dashboard-content {
        gap: 24px;
    }

    .section {
        padding: 16px;
        border-radius: 20px;
    }

    .section-header {
        margin-bottom: 16px;
    }

    .section h3 {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .profile-settings {
        gap: 20px;
    }

    .inbox-btn {
        max-width: 100%;
    }

    .search-container {
        gap: 8px;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
        font-size: 16px;
    }

    .search-container .btn {
        width: 100%;
        min-width: auto;
    }

    .contacts-actions {
        margin-top: 16px;
        gap: 8px;
    }

    .contacts-actions .btn {
        min-width: 120px;
        font-size: 14px;
    }

    .category-header {
        font-size: 14px;
        padding: 8px 12px;
    }

    .category-templates {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .template-card {
        min-height: 60px;
        padding: 12px 10px;
        border-radius: 16px;
    }

    .template-card .label {
        font-size: 12px;
    }
    
    .template-text {
        font-size: 11px;
    }

    .contact-card {
        padding: 16px;
        min-height: 48px;
        border-radius: 16px;
    }

    .contact-name {
        font-size: 15px;
    }

    .contact-code {
        font-size: 12px;
    }

    .message-card {
        padding: 16px;
        border-radius: 20px;
    }

    .message-from {
        font-size: 14px;
    }

    .message-time {
        font-size: 12px;
    }

    .message-text {
        font-size: 16px;
    }
    
    /* Larger touch targets on mobile */
    .btn {
        min-height: 52px;
        font-size: 16px;
    }
    
    input[type="text"],
    input[type="password"] {
        min-height: 52px;
        font-size: 16px;
    }
    
    /* Mobile notification */
    .new-message-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        padding: 14px 20px;
    }
    
    .notification-text {
        font-size: 13px;
    }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {
    #landing-page {
        padding: 24px 16px 16px;
        gap: 24px;
    }

    #landing-page h1 {
        font-size: 34px;
    }
    
    .tagline {
        font-size: 13px;
    }

    .landing-description {
        font-size: 12px;
        max-width: 280px;
    }

    .feature-pill {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .code-display {
        font-size: 28px;
        padding: 16px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
    }
    
    .container {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    #landing-page {
        padding: 20px 12px;
    }
    
    .logo {
        font-size: 40px;
        margin-bottom: 10px;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(216, 207, 255, 0.3);
    border-top-color: var(--lavender-breeze);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

input,
button,
.btn {
    transition: all 0.2s ease-in-out;
}

/* Admin Styles */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(184, 167, 232, 0.3);
    padding-bottom: 16px;
}

.admin-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(184, 167, 232, 0.2);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft-gray);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--sky-whisper-blue));
    border-color: var(--lavender-breeze);
    color: var(--ink-soft-gray);
    font-weight: 600;
}

.admin-tab-content {
    display: none;
}

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

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 215, 232, 0.8));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 167, 232, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 32px;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink-soft-gray);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 167, 232, 0.2);
}

.admin-section-header h3 {
    margin: 0;
    color: var(--ink-soft-gray);
    font-size: 18px;
    font-weight: 600;
}

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

.admin-filters {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(184, 167, 232, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-options {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 8px 12px;
    border: 1px solid rgba(184, 167, 232, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    color: var(--ink-soft-gray);
}

.admin-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid rgba(216, 207, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(216, 207, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(216, 207, 255, 0.2);
    transition: all 0.2s ease;
}

.admin-item:hover {
    background: rgba(216, 207, 255, 0.15);
    transform: translateY(-1px);
}

.admin-item-info {
    flex: 1;
}

.admin-item-info h4 {
    margin: 0 0 6px 0;
    color: var(--ink-soft-gray);
    font-size: 16px;
    font-weight: 600;
}

.admin-item-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.4;
}

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

.admin-item-actions button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-item-actions .btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-weight: 500;
}

.admin-item-actions .btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
}

.admin-overview-actions {
    text-align: center;
    margin-top: 20px;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.setting-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 167, 232, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.setting-card h4 {
    margin: 0 0 8px 0;
    color: var(--ink-soft-gray);
    font-size: 16px;
    font-weight: 600;
}

.setting-card p {
    margin: 0 0 16px 0;
    color: var(--text-light);
    font-size: 14px;
}

/* Profile Settings */
.profile-settings {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 138, 138, 0.2), rgba(138, 138, 138, 0.3));
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--lavender-breeze), var(--sky-whisper-blue));
}

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

input:focus + .slider {
    box-shadow: 0 0 0 2px rgba(216, 207, 255, 0.3);
}

/* Search Functionality */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    min-height: 52px;
    border: 2px solid rgba(184, 167, 232, 0.3);
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    color: var(--ink-soft-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--lavender-breeze);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(184, 167, 232, 0.1);
}

.search-container .btn {
    min-width: 120px;
    padding: 14px 24px;
    white-space: nowrap;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-result-card {
    background: linear-gradient(135deg, var(--warm-cloud-pink), var(--lavender-breeze));
    border: none;
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-result-card:active {
    background: rgba(255, 255, 255, 1);
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    .user-result-card:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transform: scale(1.02);
    }
}

.user-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-result-name {
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.3px;
    color: var(--ink-soft-gray);
}

.user-result-code {
    font-size: 14px;
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
}

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

.message-public-btn {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    background: linear-gradient(135deg, var(--sky-whisper-blue), var(--lavender-breeze));
    color: var(--ink-soft-gray);
    touch-action: manipulation;
}

.message-public-btn:hover {
    transform: scale(1.05);
}

.message-public-btn:active {
    transform: scale(0.98);
}

.theme-soft {
    --morning-mist: #FEF7F0;
    --warm-cloud-pink: #FCE4EC;
    --sky-whisper-blue: #E8F4FD;
    --lavender-breeze: #F3E5F5;
    --ink-soft-gray: #424242;
}

.theme-night {
    --morning-mist: #1a1a2e;
    --warm-cloud-pink: #4a4a6a;
    --sky-whisper-blue: #2a2a4e;
    --lavender-breeze: #6a5acd;
    --ink-soft-gray: #e6e6fa;
}

.theme-sunset {
    --morning-mist: #FFF8F0;
    --warm-cloud-pink: #FFE4E1;
    --sky-whisper-blue: #FFDAB9;
    --lavender-breeze: #FFA07A;
    --ink-soft-gray: #8B4513;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.theme-btn.active {
    border-color: var(--lavender-breeze);
    box-shadow: 0 0 0 2px var(--lavender-breeze);
}

.theme-main-btn.active {
    background: linear-gradient(135deg, #F7D7E8, #C9DFFF);
}

.theme-soft-btn.active {
    background: linear-gradient(135deg, #FCE4EC, #E8F4FD);
}

.theme-night-btn.active {
    background: linear-gradient(135deg, #4a4a6a, #6a5acd);
}

.theme-sunset-btn.active {
    background: linear-gradient(135deg, #FFE4E1, #FFA07A);
}

/* Emoji Reaction Picker */
.reaction-picker {
    position: absolute;
    display: none;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: reactionPickerSlideIn 0.2s ease-out;
}

@keyframes reactionPickerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reaction-picker.show {
    display: flex;
}

.reaction-picker span {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.15s ease;
    padding: 4px;
    user-select: none;
}

.reaction-picker span:hover {
    transform: scale(1.3);
}

.reaction-picker span:active {
    transform: scale(1.15);
}

/* Message Reactions Display */
.message-reactions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reaction-bubble {
    display: inline-flex;
    align-items: center;
    background: rgba(184, 167, 232, 0.15);
    border: 1px solid rgba(184, 167, 232, 0.3);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.reaction-bubble:hover {
    background: rgba(184, 167, 232, 0.25);
    border-color: rgba(184, 167, 232, 0.5);
    transform: scale(1.05);
}

/* React Button on Message Cards */
.message-react-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.message-react-btn:hover {
    opacity: 1;
    background: rgba(184, 167, 232, 0.1);
    transform: scale(1.1);
}

/* Status Indicator */
.status-selector {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.status-selector h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--ink-soft-gray);
    opacity: 0.8;
}

.status-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft-gray);
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.status-option.active {
    background: rgba(184, 167, 232, 0.2);
    border-color: var(--lavender-breeze);
}

.status-emoji {
    font-size: 18px;
    pointer-events: none;
}

.status-label {
    flex: 1;
    pointer-events: none;
}

/* Status Badge (display on contacts/messages) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
}

.status-badge.status-online {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-badge.status-quiet {
    background: rgba(155, 89, 182, 0.15);
    color: #8e44ad;
}

.status-badge.status-busy {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.status-badge.status-away {
    background: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
}

.status-badge-emoji {
    font-size: 14px;
}


