/* ========== UNIFIED DESIGN SYSTEM (same as style.css) ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 76px;
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }
}

/* ---------- NAVBAR (exactly like stuble.site) ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: #667eea;
    font-size: 1.5rem;
}

.navbar-brand span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.navbar-toggler {
    border: 2px solid #667eea;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.05);
}

.navbar-nav .nav-link.active {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dropdown-item i {
    font-size: 1rem;
    width: 1.25rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-logout {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
    color: white;
}


@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-radius: 20px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .navbar-nav {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .btn-logout {
        margin-top: 1rem;
        width: 100%;
    }
}

/* ---------- PROFILE CARD & FORM (design system) ---------- */
.settings-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.settings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 16px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #7b8ef5, #8b5bb3);
}

.btn-outline-secondary {
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-outline-secondary:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    transform: translateY(-1px);
}

.form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.2);
    background-color: #ffffff;
    outline: none;
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    font-size: 1rem;
    color: #667eea;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
}

hr {
    opacity: 0.4;
    background: linear-gradient(to right, #cbd5e1, transparent);
    height: 1px;
    border: none;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

@media (max-width: 576px) {
    .settings-card {
        margin: 0 1rem;
        border-radius: 28px;
    }

    .btn-primary {
        padding: 0.75rem 1rem;
    }
}

/* Profile specific additions */
.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background: #f1f5f9;
}

.friend-action-buttons .btn {
    min-width: 120px;
}

.stat-badge {
    background: #f8fafc;
    border-radius: 40px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #475569;
}

.stat-badge i {
    color: #667eea;
    margin-right: 6px;
}

.edit-profile-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.search-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.user-result-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2ff;
    overflow: hidden;
}

.user-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.result-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-input-group {
    background: #f8fafc;
    border-radius: 60px;
    padding: 0.3rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group .form-control {
    background: transparent;
    border: none;
    border-radius: 60px;
    padding: 0.7rem 1.2rem;
    box-shadow: none;
}

.search-input-group .btn-search {
    border-radius: 60px;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s;
}

.search-input-group .btn-search:hover {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.friend-badge-small {
    background: #e6f9ed;
    color: #0a5c2e;
    border-radius: 40px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .result-avatar {
        width: 48px;
        height: 48px;
    }

    .search-input-group .btn-search {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Additional compact styles */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-header {
    background: transparent;
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2ff;
}

.search-input-group {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.search-input-group:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group .form-control {
    background: transparent;
    border: none;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    box-shadow: none;
}

.search-input-group .btn-search {
    background: transparent;
    border: none;
    color: #667eea;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 40px;
}

.search-input-group .btn-search:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Scrollable results container */
.results-scroll {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar */
.results-scroll::-webkit-scrollbar {
    width: 4px;
}

.results-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.results-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Friends */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-header {
    background: transparent;
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2ff;
}

.search-input-group {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.search-input-group:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group .form-control {
    background: transparent;
    border: none;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    box-shadow: none;
}

.search-input-group .btn-search {
    background: transparent;
    border: none;
    color: #667eea;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 40px;
}

.search-input-group .btn-search:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Scrollable results */
.results-scroll {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.results-scroll::-webkit-scrollbar {
    width: 4px;
}

.results-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.results-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Clickable user card (no buttons) */
.user-result-card {
    background: white;
    border-radius: 16px;
    padding: 0.75rem;
    transition: all 0.2s;
    border: 1px solid #f0f2f5;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.user-result-card:hover {
    background: #fafcff;
    border-color: #e0e7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.joined-badge {
    font-size: 0.7rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .result-avatar {
        width: 40px;
        height: 40px;
    }

    .user-result-card {
        padding: 0.6rem;
    }

    .joined-badge {
        font-size: 0.65rem;
    }
}


/* Additional styles for the friends page */
.friends-container {
    max-width: 680px;
    margin: 0 auto;
}

.page-header {
    background: transparent;
    padding: 0 0 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eef2ff;
}

/* Scrollable list */
.friends-list {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.friends-list::-webkit-scrollbar {
    width: 4px;
}

.friends-list::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.friends-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Friend card (clickable, no buttons) */
.friend-card {
    background: white;
    border-radius: 20px;
    padding: 0.9rem;
    transition: all 0.2s;
    border: 1px solid #f0f2f5;
    margin-bottom: 0.9rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.friend-card:hover {
    background: #fafcff;
    border-color: #e0e7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.since-badge {
    font-size: 0.7rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.25rem 0.7rem;
    border-radius: 40px;
    white-space: nowrap;
}

.bio-preview {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .friend-avatar {
        width: 48px;
        height: 48px;
    }

    .friend-card {
        padding: 0.7rem;
    }

    .since-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

.empty-friends {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Additional styles for the requests page */
.requests-container {
    max-width: 680px;
    margin: 0 auto;
}

.page-header {
    background: transparent;
    padding: 0 0 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eef2ff;
}

/* Scrollable list */
.requests-list {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.requests-list::-webkit-scrollbar {
    width: 4px;
}

.requests-list::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.requests-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Request card */
.request-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    transition: all 0.2s;
    border: 1px solid #f0f2f5;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
    color: inherit;
}

.request-card:hover {
    background: #fafcff;
    border-color: #e0e7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.request-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.request-date {
    font-size: 0.7rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.25rem 0.7rem;
    border-radius: 40px;
    white-space: nowrap;
}

.bio-preview {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button styles (consistent with design system) */
.btn-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 40px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-decline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 40px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-decline:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

@media (max-width: 576px) {
    .request-avatar {
        width: 48px;
        height: 48px;
    }

    .request-card {
        padding: 0.8rem;
    }

    .btn-accept,
    .btn-decline {
        padding: 0.25rem 0.8rem;
        font-size: 0.75rem;
    }
}

.empty-requests {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.chat-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Back bar (no main navbar) */
.back-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid #eef2ff;
    flex-shrink: 0;
}

.back-bar a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.back-bar a:hover {
    color: #5a67d8;
    transform: translateX(-2px);
}

/* Panels container */
.panels {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left panel – friends list */
.contacts-panel {
    width: 360px;
    background: white;
    border-right: 1px solid #eef2ff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Right panel – chat area */
.chat-panel {
    flex: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contacts-panel {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 5;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }

    .chat-panel {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        background: #f8fafc;
    }

    .panels.show-chat .contacts-panel {
        transform: translateX(-100%);
    }

    .panels.show-chat .chat-panel {
        transform: translateX(0);
    }
}

/* Panel headers */
.panel-header {
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header {
    background: white;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

.chat-header:hover {
    background: #fafcff;
}

/* Back button inside chat (mobile only) */
.back-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: #667eea;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

@media (min-width: 769px) {
    .back-btn {
        display: none;
    }
}

/* Contact items (friend list) */
.contact-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: white;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    background: #fafcff;
    transform: translateX(2px);
}

.contact-item.active {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #eef2ff;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 600;
    color: #1e293b;
}

.last-msg {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-time {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Unread badge */
.unread-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    margin-left: 8px;
}

/* Messages area */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-row {
    display: flex;
}

.message-bubble {
    max-width: 70%;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.received {
    background: white;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.sent {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.sent .message-text {
    color: white;
}

.message-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 4px;
}

.message-text {
    font-size: 0.9rem;
}

.message-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    margin-top: 6px;
    cursor: pointer;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.65rem;
    margin-top: 4px;
    color: #94a3b8;
}

.sent .message-meta {
    color: rgba(255, 255, 255, 0.7);
}

/* Input area */
.input-area {
    background: white;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #eef2ff;
    flex-shrink: 0;
}

.attach-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #667eea;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.attach-btn:hover {
    background: #e2e8f0;
}

.input-area input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
}

.input-area input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.send-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.send-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-wrapper {
    background: #f1f5f9;
    margin: 12px 16px;
    padding: 6px 16px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-wrapper i {
    color: #64748b;
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
}

.no-contacts {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

/* Modal (profile info) */
.modal-content {
    border-radius: 24px;
    border: none;
}

.profile-img-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}