:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --text-color: #333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary-custom {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    color: #666;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-title {
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-control-custom {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
    border-color: var(--primary-color);
    background-color: white;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Chat Page */
.chat-container {
    height: calc(100vh - 76px); /* Subtract navbar height */
    margin-top: 76px;
    background-color: #f0f2f5;
}

.sidebar {
    border-right: 1px solid #dee2e6;
    background-color: white !important;
}

.messages-area {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #e5ddd5; /* WhatsApp-like background color */
    background-image: url("https://www.transparenttextures.com/patterns/subtle-white-feathers.png"); /* Subtle pattern */
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
    font-size: 0.95rem;
}

.message-bubble.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-bubble.received {
    background-color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

/* Modern UI Utilities */
.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-square {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-pills .nav-link {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.3);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}
