/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 10px 0;
}

.header-user-link a {
    padding: 0 !important;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    vertical-align: middle;
}

/* Banner */
.banner {
    background: url('../images/banner.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.banner h1 {
    font-size: 48px;
}

/* Quick Search */
.quick-search {
    padding: 50px;
    text-align: center;
}

.quick-search form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Testimonials */
.testimonials {
    background-color: #f4f4f4;
    padding: 50px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Search Filters */
.search-filters {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.search-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Browse Matches Page */
.browse-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.browse-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.profile-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card .btn-view, .profile-card .btn-interest {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.profile-card .btn-interest {
    background-color: #28a745;
}

.profile-card .btn-view {
    transform: translateY(-5px);
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.profile-card h3 {
    margin: 10px 0 5px 0;
}

.profile-card p {
    margin: 5px 0;
    color: #555;
}

.view-profile-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.profile-view-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Premium Feature Block */
.premium-block {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.btn-upgrade {
    display: inline-block;
    background-color: #ffc107;
    color: #212529;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

/* Pricing Page */
.pricing-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: #007bff;
    border-width: 2px;
    position: relative;
}

.pricing-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 14px;
}

.pricing-card h3 { font-size: 20px; color: #333; }
.pricing-card h2 { font-size: 40px; margin: 10px 0; color: #007bff; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 10px; }

.btn-choose, .btn-disabled {
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.btn-choose { background-color: #007bff; color: #fff; }
.btn-disabled { background-color: #6c757d; color: #fff; cursor: not-allowed; }

/* Form Styles */
.registration-form, .login-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.registration-form h2, .login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.registration-form form, .login-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.registration-form input, .registration-form select, .registration-form textarea, .login-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.registration-form button, .login-form button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-form a {
    text-align: center;
    display: block;
    margin-top: 10px;
}

/* Verification Form */
.verification-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
}

.dev-otp-display {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 10px;
    margin: 15px 0;
    border-radius: 4px;
}

.dev-otp-display.profile-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center; /* Center content */
}

.profile-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.error { color: #dc3545; }
.message { color: #28a745; }

/* Profile Completeness */
.profile-completeness {
    background-color: #f0f8ff;
    border: 1px solid #d1e7fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 20px;
    width: 100%;
    margin-top: 10px;
}

.progress-bar {
    background-color: #28a745;
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.profile-completeness p {
    margin-top: 10px;
}

/* Photo Management */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.photo-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.photo-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-card:hover .photo-actions {
    opacity: 1;
}

.photo-actions button {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
    margin: 0 2px;
}

/* Chat Page */
.chat-container {
    display: flex;
    height: calc(100vh - 140px); /* Adjust based on header/footer height */
    border: 1px solid #ddd;
    margin: 20px;
}

.chat-sidebar {
    width: 25%;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.chat-sidebar h2 {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-list li {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.chat-list li:hover, .chat-list li.active {
    background-color: #e9ecef;
}

.chat-main {
    width: 75%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 10px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 70%;
    word-wrap: break-word;
}

.message.sent {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.received {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.no-chat-selected {
    text-align: center;
    color: #888;
    margin: auto;
}

.chat-form {
    border-top: 1px solid #ddd;
    padding: 10px;
}

.chat-form form {
    display: flex;
}

.chat-form textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
}

.chat-form button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

.btn-chat {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    background-color: #17a2b8;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
}
/* Interests Page */
.interests-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.interests-section {
    margin-bottom: 30px;
}

.interest-list {
    list-style: none;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.interest-list li {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interest-list li:last-child {
    border-bottom: none;
}

.interest-list .status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    margin-left: 10px;
}

.status-sent { background-color: #007bff; }
.status-accepted { background-color: #28a745; }
.status-declined { background-color: #dc3545; }

.interest-actions form {
    display: inline-block;
    margin-left: 5px;
}

.btn-accept, .btn-decline {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.btn-accept { background-color: #28a745; }
.btn-decline { background-color: #dc3545; }

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.dashboard-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-links a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dashboard-links a:hover {
    background-color: #0056b3;
}

/* Verification Form */
.verification-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.verification-form h2 {
    margin-bottom: 15px;
}

.verification-form p {
    margin-bottom: 20px;
    color: #555;
}

.verification-form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 5px;
}

.verification-form .error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

/* Payment Processing */
.payment-processing-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Profile Completeness */
.profile-completeness {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.profile-completeness h3 {
    margin-top: 0;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 50px;
    height: 20px;
    width: 100%;
    margin: 15px 0;
}

.progress-bar {
    background-color: #28a745;
    height: 100%;
    border-radius: 50px;
    text-align: center;
    color: white;
    line-height: 20px;
    transition: width 0.4s ease;
}

/* Photo Management */
.photo-upload-form {
    margin-bottom: 30px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-actions {
    opacity: 1;
}

.photo-actions .btn-sm, .photo-actions .primary-badge {
    font-size: 12px;
    padding: 5px 10px;
}

.primary-badge {
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

/* Browse Matches - Profile Grid */
.browse-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.search-filters {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.profile-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-card a {
    text-decoration: none;
    color: inherit;
}

.profile-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-card-info {
    padding: 15px;
}

.profile-card-info h3 {
    margin-top: 0;
    font-size: 1.1em;
}

.profile-card-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a:hover:not(.active) {
    background-color: #f2f2f2;
}

/* View Profile Page */
.profile-view-container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.detail-card p {
    line-height: 1.6;
}

.btn-interest, .btn-disabled {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.btn-interest {
    background-color: #28a745;
}

.btn-disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.premium-block .btn-upgrade {
    display: inline-block;
    margin-top: 10px;
    background-color: #ffc107;
    color: #212529;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Modern styles from index.php */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --header-bg: #ffffff;
    --header-text: #333333;
    --footer-bg: #1a1a2e;
    --footer-text: #ffffff;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/1600x900/?wedding,couple') no-repeat center center/cover;
    color: white;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-box h2 {
    color: var(--dark-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.search-box h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.form-control, .form-select {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Social Links in Footer */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .search-box {
        margin-top: 0;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        margin-bottom: 20px;
    }
}


/* Chat Page Styles */
.chat-container-modern {
    display: flex;
    height: calc(100vh - 120px); /* Adjust based on header/footer height */
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    overflow: hidden;
}

.chat-sidebar-modern {
    flex: 0 0 280px;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.chat-main-modern {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-list .list-group-item {
    cursor: pointer;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

.chat-list .list-group-item.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.chat-header-modern {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    max-width: 70%;
    word-wrap: break-word;
}

.message.sent {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.message.received {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-form-modern {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

#message-form {
    display: flex;
}

#message-input {
    flex-grow: 1;
    margin-right: 0.5rem;
}

