@charset "UTF-8";

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    overscroll-behavior-y: contain;
}

/* iOS Safe Area for PWA */
.safe-area-pb {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* PWA Standalone Mode Adjustments */
@media all and (display-mode: standalone) {
    .pwa-hide {
        display: none !important;
    }
}

.sidebar {
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    height: 100vh;
    overflow-y: auto;
    width: 100%;
}

#inbox-view {
    width: 100%;
}

.message-list-item:hover {
    background-color: #e2e8f0;
}

.message-list-item.active {
    background-color: #dbeafe;
}

.lg .message-list-item.active {
    border-right: 4px solid #3b82f6;
}

/* スクロールバーのスタイル */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nav-link.active {
    background-color: #e0f2fe;
    font-weight: 600;
    color: #0284c7;
}

/* Custom Utilities for Voice Recording Animation */
.recording-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Login Screen Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

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

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