:root {
    --blue: #4285F4;
    --bg: #F8F9FC;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #111;
    margin: 0;
    display: flex;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.card {
    border-radius: 32px;
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
    border: 1px solid rgba(0, 0, 0, 0.03);
    background: #FFFFFF;
}

.card:active {
    transform: scale(0.98);
}

.card-deep {
    border-left: 6px solid #4285F4;
}

.card-secret {
    border-left: 6px solid #EA4335;
}

.card-funny {
    border-left: 6px solid #FBBC05;
}

.card-general {
    border-left: 6px solid #34A853;
}

.confession-text {
    font-size: clamp(1.1rem, 5vw, 1.2rem);
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 500;
}

.blur-overlay {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.4);
    filter: blur(8px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Modal/Drawer Logic */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
    visibility: hidden;
}

.drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.drawer-content {
    background: white;
    border-radius: 40px 40px 0 0;
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    height: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.drawer.active .drawer-content {
    transform: translateY(0);
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drawer.active .drawer-overlay {
    opacity: 1;
}

.comment-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 0;
}

#commentList {
    min-height: 150px;
    max-height: 50vh;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.fab-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #4285F4;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Dark Mode Overrides */
.dark-mode body { background-color: #000; }
.dark-mode .app-container { background-color: #111; }
.dark-mode .bg-white, .dark-mode .card, .dark-mode .drawer-content { background-color: #1e1e1e !important; }
.dark-mode .text-gray-900, .dark-mode h1, .dark-mode h2, .dark-mode h3 { color: #f3f4f6 !important; }
.dark-mode .text-gray-800 { color: #d1d5db !important; }
.dark-mode .text-gray-500, .dark-mode .text-gray-400 { color: #9ca3af !important; }
.dark-mode .bg-gray-100, .dark-mode .bg-gray-50, .dark-mode input, .dark-mode textarea { background-color: #2d2d2d !important; color: #f3f4f6 !important; }
.dark-mode .border-gray-100 { border-color: #333 !important; }
.dark-mode .confession-text { color: #e5e5e5 !important; }
.dark-mode header, .dark-mode nav { background-color: rgba(30,30,30,0.85) !important; color: #f3f4f6 !important; }

/* Icon Clipping Fixes and Toggle Dark Mode */
.flex.items-center.gap-6.mt-6 {
    gap: 1.75rem !important; /* Increase gap to prevent clipping */
}

.dark-mode #revealToggleBtn, .dark-mode #themeToggleBtn {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #f3f4f6 !important;
}

