@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.text-primary { color: #ff758c !important; }
.bg-primary { background-color: #ff758c !important; }

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}
.btn-primary {
    background-color: #ff758c;
    border-color: #ff758c;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #ff5c77;
    border-color: #ff5c77;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 117, 140, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.profile-card img.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Chat Interface */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px); /* Adjust based on navbar height */
    max-height: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.message.sent {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 117, 140, 0.2);
}

.message.received {
    background-color: #fff;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff758c; 
}

/* Mobile Responsiveness */
@media (min-width: 769px) {
    .popular-card {
        transform: scale(1.05);
        z-index: 10;
    }
}

@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 120px);
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #eee;
    }
    
    .profile-card img.card-img-top {
        height: 300px; /* Larger images on mobile */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
}
