/* GENERAL */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.inbox-bg {
    background: #0d0d0d;
    color: #ccc;
}

.chat-bg {
    background: #0d0d0d;
}

/* INBOX TITLE */
.inbox-title {
    text-align: center;
    color: #e6e6e6;
    padding: 20px 0;
    font-size: 1.6rem;
}

/* INBOX LIST */
.inbox-wrapper {
    padding-bottom: 80px; /* space for bottom nav */
}

.inbox-item {
    display: block;
    padding: 18px;
    margin: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #ccc;
    background: #1a1a1a;
    border-bottom: 1px solid #262626;
    animation: inboxSlideUp 0.45s ease both;
}

.inbox-item:hover {
    background: #222;
}

.contact-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.preview-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CHAT BUBBLES */
.chat-wrapper {
    padding: 15px;
    padding-bottom: 90px;
}
.bubble-you, .bubble-other {
    opacity: 0;
    animation-fill-mode: forwards; 
}

.bubble-you {
    max-width: 70%;
    background: #d4b76d;
    color: #000;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 10px 0 10px auto;
    animation: bubbleRight 0.35s ease forwards;
}

.bubble-other {
    max-width: 70%;
    background: #e8e6e1;
    color: #111;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 10px 0;
    animation: bubbleLeft 0.35s  ease forwards;
}

/* BOTTOM NAV BAR */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #333;
}

.bottom-nav button {
    background: #222;
    color: #eee;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: background 0.25s ease, transform 0.15s ease;
}

.bottom-nav button:hover {
    background: #333;
    animation: navPulse 0.25s ease alternate;

}

.bottom-nav button:active {
    transform: scale(0.95);
}
/* ===========================
   ANIMATIONS — ENHANCED
   =========================== */

/* Inbox items slide up with a gentle bounce */
@keyframes inboxSlideUp {
    0%   { opacity: 0; transform: translateY(18px); }
    60%  { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Chat bubbles fade and slide in from the left/right */
@keyframes bubbleLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* Bottom nav buttons pulse slightly on hover */
@keyframes navPulse {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

/* SEARCH BAR */
.search-container {
    text-align: right;
    padding: 0 20px;
    position: relative;
}

.search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ccc;
}

#searchInput {
    margin-top: 10px;
    width: 90%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #1a1a1a;
    color: #ccc;
    display: none;
}
