* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e5e5e5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navbar */
.navbar {
    background-color: #1f1f1f;
    border-bottom: 1px solid #2a2a2a;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    width: calc(100% - 48px);
    margin-left: 24px;
    margin-right: 24px;
    margin-top: 12px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background-color: #222;
    color: #fff;
}

/* Main */
main {
    flex: 1;
    padding: 30px 0;
    width: 100%;
}

/* Cards */
.card {
    background: #252525;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #064e3b;
    color: #6ee7b7;
    border: 1px solid #059669;
}

.alert-error {
    background-color: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #dc2626;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    background: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-primary:hover {
    background-color: #e5e5e5;
}

.btn-secondary {
    background-color: #222;
    color: #e5e5e5;
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-danger {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.btn-danger:hover {
    background-color: #991b1b;
}

.btn-outline {
    border: 1px solid #333;
    color: #e5e5e5;
}

.btn-outline:hover {
    background-color: #222;
}

.btn-full {
    width: 100%;
    padding: 14px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-like {
    background-color: #222;
    color: #e5e5e5;
    font-size: 15px;
}

.btn-like.liked {
    background-color: #7f1d1d;
    color: #fca5a5;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #e5e5e5;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #404040;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background-color: #1a1a1a;
    color: #e5e5e5;
}

.form-control:focus {
    outline: none;
    border-color: #fff;
    background-color: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
    color: #666;
}

.form-group small {
    color: #666;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #fff;
}

.error {
    color: #fca5a5;
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

/* Auth */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    width: 100%;
    max-width: 500px;
}

.auth-card h1 {
    margin-bottom: 24px;
    font-size: 28px;
    color: #fff;
}

.auth-card .subtitle {
    color: #888;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Avatar */
.avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #333, #111);
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #444, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-header-card .username {
    color: #666;
    font-size: 15px;
    margin-bottom: 12px;
}

.group-badge {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.current-avatar {
    margin: 10px 0;
}

.current-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.current-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

/* File upload */
.file-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #e5e5e5;
}

.form-control[type="file"] {
    padding: 10px;
    background: #111;
    cursor: pointer;
}

/* First login & group select */
.first-login-card,
.group-select-card {
    max-width: 100%;
}

/* Select group full page */
.select-group-page {
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-group-main {
    width: 100%;
    padding: 40px 20px;
}

.select-group-container {
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
}

.select-group-container h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 8px;
}

.select-group-container .subtitle {
    color: #888;
    font-size: 16px;
    margin-bottom: 40px;
}

.group-select-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.group-option {
    background: #252525;
    border: 2px solid #333;
    border-radius: 24px;
    padding: 40px 32px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.group-option:hover {
    border-color: #fff;
    background: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.group-option-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
}

.group-option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #444, #222);
}

.group-option h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 24px;
}

.group-option p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
}

/* Groups grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.group-card-large {
    background: #252525;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
}

.group-card-large:hover {
    border-color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.group-card-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
}

.group-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-card-large h2 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 24px;
}

.group-card-large h2 a {
    color: #fff;
    text-decoration: none;
}

.group-card-large h2 a:hover {
    color: #ccc;
}

.group-card-large .group-description {
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 60px;
}

.group-card-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.group-meta {
    color: #888;
    font-size: 14px;
}

/* Password toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

/* Author group tags */
.author-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info .author {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.author-info .author:hover {
    text-decoration: underline;
}

.author-info .post-date {
    color: #666;
    font-size: 12px;
}

.group-tag {
    background: #222;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.admin-link {
    color: #fca5a5;
}

.admin-link:hover {
    color: #f87171 !important;
}

/* Admin panel */
.admin-page h1 {
    margin-bottom: 24px;
    color: #fff;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: #222;
    border: none;
    border-radius: 12px;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #333;
    color: #fff;
}

.tab-btn.active {
    background: #fff;
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-table {
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.admin-table th {
    color: #888;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table td {
    color: #e5e5e5;
    font-size: 14px;
}

.admin-table tr:hover {
    background: #111;
}

.admin-table .btn-small {
    margin-right: 8px;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-tiny {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #444, #222);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h2 {
    font-size: 18px;
    color: #fff;
}

.current-media {
    margin-top: 10px;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.current-media img,
.current-media video {
    width: 100%;
    display: block;
}

/* Post media */
.post-media {
    margin: 16px -24px;
    overflow: hidden;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    max-height: none;
}

.post-media img,
.post-media video {
    width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

.post-card img {
    object-fit: contain;
}

.post-media-full {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.post-media-full img,
.post-media-full video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.post-card .post-media {
    margin: 16px -24px;
    border-radius: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px;
    max-height: none;
    overflow: visible;
}

.post-card .post-media img {
    border-radius: 8px;
    object-fit: contain;
    max-height: 300px;
}
}

/* Page wrappers */
.page-wrapper {
    width: 100%;
    max-width: 100%;
}

.page-wrapper.profile-wrapper,
.page-wrapper.group-wrapper,
.page-wrapper.post-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Feed */
.feed {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.new-post-link {
    margin-bottom: 20px;
}

.post-card {
    transition: box-shadow 0.2s;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.post-header .author {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.post-header .author:hover {
    text-decoration: underline;
}

.post-date {
    color: #666;
    font-size: 13px;
}

.post-title {
    margin-bottom: 12px;
    font-size: 20px;
    height: 28px;
    overflow: hidden;
}

.post-title a {
    color: #fff;
    text-decoration: none;
}

.post-title a:hover {
    color: #ccc;
}

.post-preview {
    color: #aaa;
    margin-bottom: 16px;
    line-height: 1.7;
    min-height: 50px;
    max-height: 50px;
    overflow: hidden;
}

.post-footer {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-like-action {
    background: #222;
    color: #e5e5e5;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-like-action:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-like-action.liked {
    background: #7f1d1d;
    color: #fca5a5;
}

.btn-like-action.liked:hover {
    background: #991b1b;
}

.meta-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.meta-link:hover {
    color: #fff;
}

.comments-link {
    padding: 8px 16px;
    border-radius: 20px;
    background: #222;
}

.comments-link:hover {
    background: #333;
    color: #fff;
}

/* Full post */
.post-full {
    margin-bottom: 20px;
}

.post-full .post-header {
    border-bottom: 1px solid #222;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.post-full .post-title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #ccc;
}

.post-actions {
    padding: 20px 0 0 0;
    border-top: 1px solid #222;
    margin-top: 20px;
}

/* Comments */
.comments-section {
    margin-top: 20px;
}

.comments-section h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.comments-list {
    margin-bottom: 24px;
}

.comment {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #333;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-date {
    color: #666;
    font-size: 12px;
}

.comment-content {
    color: #ccc;
    white-space: pre-wrap;
    font-size: 15px;
    line-height: 1.6;
}

.delete-comment-form {
    display: inline;
}

.add-comment {
    margin-top: 20px;
}

.add-comment h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #fff;
}

.login-to-comment {
    color: #666;
    font-size: 14px;
}

.login-to-comment a {
    color: #fff;
    text-decoration: underline;
}

.no-comments, .empty-state {
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
}

/* Profile */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.profile-header-card {
    text-align: center;
    padding: 40px 24px;
}

.profile-header-card h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #fff;
}

.member-since {
    color: #666;
    font-size: 14px;
}

.bio-card h3 {
    margin-bottom: 12px;
    color: #888;
    font-size: 15px;
}

.bio-card p {
    color: #ccc;
    line-height: 1.7;
}

.user-posts {
    margin-top: 30px;
}

.user-posts h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #fff;
}

/* Form pages */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-container h1 {
    margin-bottom: 24px;
    font-size: 26px;
    color: #fff;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #fff;
}

/* Groups */
.groups-page h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #fff;
}

.groups-list {
    margin-top: 20px;
}

.group-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.group-card h3 a {
    color: #fff;
    text-decoration: none;
}

.group-card h3 a:hover {
    color: #ccc;
}

.group-description {
    color: #aaa;
    margin-bottom: 12px;
    font-size: 15px;
}

.group-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.group-creator {
    color: #666;
    font-size: 14px;
}

.group-creator a {
    color: #fff;
    text-decoration: underline;
}

/* Group page */
.group-page {
    width: 100%;
}

.group-page .card {
    margin-bottom: 20px;
}

.group-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.group-header-card h1 {
    flex: 1;
    font-size: 26px;
    color: #fff;
}

.group-date {
    color: #666;
    font-size: 14px;
}

.group-description-card h3 {
    margin-bottom: 12px;
    color: #888;
    font-size: 15px;
}

.group-description-card p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 12px;
}

.group-posts {
    margin-top: 24px;
}

.group-posts h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #fff;
}

.group-posts .btn {
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.page-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Delete form */
.delete-form {
    display: inline;
}

/* Footer */
.footer {
    background-color: #1f1f1f;
    border-top: 1px solid #2a2a2a;
    padding: 24px 0;
    margin-top: 40px;
}

.footer p {
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
}

.lightbox-close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Comments */
.comments-section {
    margin-top: 40px;
}

.comments-section .card {
    background-color: #1f1f1f;
    padding: 24px;
}

.comments-section h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.comments-list {
    margin-bottom: 30px;
}

.comment {
    padding: 16px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: #242424;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comment-user {
    flex: 1;
}

.comment-author {
    color: #5ab1d1;
    text-decoration: none;
    font-weight: 600;
    margin-right: 12px;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-date {
    color: #666;
    font-size: 12px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-like-comment,
.btn-reply-comment {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-like-comment:hover,
.btn-reply-comment:hover {
    background-color: #2a2a2a;
    color: #aaa;
}

.btn-like-comment.liked {
    color: #e91e63;
}

.comment-likes-count {
    margin-left: 4px;
}

.comment-likes-view {
    color: #888;
    font-size: 13px;
}

.comment-content {
    color: #ddd;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

.reply-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.reply-form textarea {
    background-color: #1a1a1a;
    color: #ddd;
    border: 1px solid #2a2a2a;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #5ab1d1;
}

.reply-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.replies {
    margin-top: 12px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px solid #2a2a2a;
}

.replies .comment {
    background-color: #1f1f1f;
    margin-bottom: 12px;
}

.add-comment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.add-comment h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #fff;
}

.no-comments {
    color: #666;
    text-align: center;
    padding: 20px;
}

.login-to-comment {
    color: #888;
    text-align: center;
    padding: 16px;
}

.login-to-comment a {
    color: #5ab1d1;
    text-decoration: none;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .post-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .group-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card {
        padding: 20px;
    }
}
