/* Modern teal and coral theme with glassmorphism */
body.light {
    background: linear-gradient(to bottom, #2dd4bf, #f5f5f5);
    color: #1e293b;
}

body.dark {
    background: linear-gradient(to bottom, #134e4a, #1e3a8a);
    color: #99f6e4;
}

.glass-box {
    background: rgba(45, 212, 191, 0.2); /* Teal with transparency */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dark .glass-box {
    background: rgba(20, 78, 74, 0.2); /* Darker teal for dark mode */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.font-sans {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

input, .ios-button {
    transition: all 0.2s ease;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.5); /* Coral focus ring */
}

.ios-button {
    background: linear-gradient(to right, #f472b6, #fb7185); /* Coral gradient */
    color: #ffffff;
}

.ios-button:hover {
    background: linear-gradient(to right, #ec4899, #f43f5e);
    transform: translateY(-1px);
}

.ios-button:active {
    background: linear-gradient(to right, #db2777, #e11d48);
    transform: translateY(0);
}

.notification-badge {
    transition: transform 0.2s ease;
}

.notification-badge:hover {
    transform: scale(1.1);
}

.notification-badge.hidden {
    display: none;
}

.cover-photo {
    height: 16rem;
    transition: opacity 0.2s ease;
}

.profile-photo {
    transform: translateY(-50%);
}

@media (min-width: 640px) {
    .cover-photo {
        height: 20rem;
    }
}

@media (min-width: 768px) {
    .cover-photo {
        height: 24rem;
    }
}

.text-gray-600 {
    color: #4b5563;
}

.dark .text-gray-600 {
    color: #9ca3af;
}

/* Fixed chatbox styles */
.fixed-chatbox {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(45, 212, 191, 0.2); /* Teal glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dark .fixed-chatbox {
    background: rgba(20, 78, 74, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input {
    background: transparent;
    border: 1px solid #4b5563;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    color: #1e293b;
    width: 100%;
}

.dark .chat-input {
    border-color: #9ca3af;
    color: #99f6e4;
}

.chat-input:focus {
    outline: none;
    border-color: #f472b6; /* Coral focus */
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.5);
}

/* Scrollable message container */
.message-container {
    max-height: calc(60vh - 50px); /* Adjust for header, carousel, and chatbox */
    overflow-y: auto;
    padding-bottom: 1rem;
}