/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    background: white;
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #00326D;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
}

.nav-links a:hover, .nav-links a.active {
    color: #00326D;
    background: none;
}


/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Homepage Content */
.homepage {
    display: block;
}

.hero {
    background: 
        linear-gradient(135deg, rgba(145, 214, 172, 0.4) 0%, rgba(0, 127, 163, 0.4) 100%),
        url('../assets/GettyImages-878956490_trophy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem 6rem;
    text-align: left;
    color: #000000;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 500px;
    padding: 0;
}

.hero-text h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 400;
    color: #000000;
    letter-spacing: -0.01em;
}

.hero-text p {
    font-size: 1.25rem;
    color: #000000;
    font-weight: 400;
    line-height: 1.4;
}


.method-section {
    padding: 4rem 2rem;
    background: white;
}

.method-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.method-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #007FA3;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.method-content p {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Community Section */
.community {
    display: none;
    padding: 2rem;
}

.community-container {
    max-width: 1200px;
    margin: 0 auto;
}

.community-header {
    text-align: center;
    margin-bottom: 2rem;
}

.community-header h1 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 400;
}

.community-header p {
    color: #4a5568;
    font-size: 1.1rem;
}

.community-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.community-sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #00326D;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.85rem;
    color: #718096;
    word-break: break-all;
}

.edit-profile-btn {
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    background: transparent;
    color: #00a99d;
    border: 1px solid #00a99d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background: #00a99d;
    color: white;
}

.group-list h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.group-item {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.group-item:hover {
    background: #f7fafc;
}

.group-item.active {
    background: #ebf4ff;
    border-color: #4299e1;
}

.group-name {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.group-count {
    font-size: 0.85rem;
    color: #718096;
}

.community-main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-composer {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.composer-header h3 {
    color: #2d3748;
    font-weight: 500;
}

.anonymity-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anonymity-toggle input[type="checkbox"] {
    margin-right: 0.25rem;
}

.composer-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.composer-form textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.composer-options {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #f7fafc;
    color: #00326D;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.community-feed {
    padding: 0;
}

.post {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Crisis Post Indicators */
.post.crisis-crisis {
    border-color: #dc2626;
    border-width: 2px;
}

.post.crisis-concern {
    border-color: #f59e0b;
    border-width: 2px;
}

.post.crisis-coaching {
    border-color: #10b981;
    border-width: 2px;
}

.crisis-indicator {
    position: absolute;
    top: -12px;
    right: 20px;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.crisis-indicator.crisis-crisis {
    background: #dc2626;
    color: white;
}

.crisis-indicator.crisis-concern {
    background: #f59e0b;
    color: white;
}

.crisis-indicator.crisis-coaching {
    background: #10b981;
    color: white;
}

.crisis-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post:last-child {
    margin-bottom: 0;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4299e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    background-size: cover;
    background-position: center;
}

.author-avatar.anonymous-avatar {
    filter: blur(3px);
    -webkit-filter: blur(3px);
    overflow: hidden;
    position: relative;
}

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

.author-name {
    font-weight: 500;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-time {
    font-size: 0.85rem;
    color: #718096;
}

.post-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    color: #718096;
}

.post-menu:hover {
    background: #f7fafc;
}

.post-content {
    margin-bottom: 1rem;
}

.post-text {
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #ebf4ff;
    color: #3182ce;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 4px;
    color: #718096;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.like-btn {
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.like-btn.liked {
    background: #fef2f2;
    color: #dc2626;
}

.like-btn.liked:hover {
    background: #fecaca !important;
}

.like-icon {
    transition: all 0.2s ease;
}

.like-btn.liked .like-icon {
    transform: scale(1.1);
}

.coach-badge {
    background: #38a169;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.coaching-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.coaching-cta h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.coaching-cta p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.btn-cta {
    background: white;
    color: #667eea;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        justify-content: center;
        text-align: center;
    }
    
    .hero-text {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .method-content h2 {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .community {
        padding: 1rem;
    }
    
    .chat-widget {
        width: 280px;
        right: 10px;
        bottom: 10px;
    }
    
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 0.25rem 0.5rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-content {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
}

/* Registration Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-logo img {
    height: 32px;
    width: auto;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.modal-content {
    padding: 1rem 2rem 2rem;
}

.modal-content h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #00326D;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content p {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.registration-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-google:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.email-registration {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input, .name-input, .password-input {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

.email-input:focus, .name-input:focus, .password-input:focus {
    outline: none;
    border-color: #00326D;
    box-shadow: 0 0 0 3px rgba(0, 50, 109, 0.1);
}

.btn-email {
    padding: 0.875rem 1.5rem;
    background: #00326D;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-email:hover {
    background: #002a5c;
    transform: translateY(-1px);
}

.registration-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.registration-footer p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.registration-footer a {
    color: #00326D;
    text-decoration: none;
}

.registration-footer a:hover {
    text-decoration: underline;
}

/* Login Modal */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.login-footer a {
    color: #00326D;
    text-decoration: none;
    font-weight: 500;
}

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

/* Onboarding Modal */
.onboarding-container {
    max-width: 600px;
}

.onboarding-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guidelines-section {
    margin: 2rem 0;
}

.guidelines-section h3 {
    font-size: 1.25rem;
    color: #00326D;
    margin-bottom: 1rem;
    text-align: left;
}

.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #00326D;
}

.guideline-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guideline-item strong {
    display: block;
    color: #00326D;
    margin-bottom: 0.25rem;
}

.guideline-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
}

.coaching-offer {
    margin: 1.5rem 0;
}

.coaching-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.coaching-highlight h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.coaching-highlight p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.btn-enter-community {
    width: 100%;
    padding: 1rem 2rem;
    background: #00326D;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-enter-community:hover {
    background: #002a5c;
    transform: translateY(-1px);
}

/* Group Joining */
.join-btn {
    font-size: 0.8rem;
    color: #00326D;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.group-item:hover .join-btn {
    opacity: 1;
}

.group-item.joined {
    background: #f0f9ff;
    border-color: #00326D;
}

.group-item.joined .join-btn {
    color: #10b981;
}

.joined-groups {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Reset Demo Button */
.reset-demo {
    opacity: 0.5;
    font-size: 14px !important;
}

.reset-demo:hover {
    opacity: 1;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 320px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-logo {
    margin-bottom: 10px;
}

.chat-logo img {
    height: 24px;
    width: auto;
}

.chat-message {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.chat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.chat-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

/* Tag System Styles - LinkedIn Style */
.selected-tags-container {
    margin-top: 8px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #ebf4ff;
    color: #3182ce;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.selected-tag .remove-tag {
    margin-left: 0.25rem;
    cursor: pointer;
    color: #3182ce;
    font-weight: bold;
}

.selected-tag .remove-tag:hover {
    color: #2c5282;
}

.tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-width: 300px;
    margin-top: 5px;
}

.tag-dropdown-header {
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.tag-dropdown-options {
    padding: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.tag-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tag-option:hover {
    background: #f8fafc;
}

.tag-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

.tag-option span {
    font-size: 0.875rem;
    color: #334155;
}

.composer-options {
    position: relative;
}

/* Post Button Styles */
.btn.btn-primary {
    background: #00326D;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.btn.btn-primary:hover {
    background: #00274A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 50, 109, 0.3);
}

.btn.btn-primary:active {
    transform: translateY(0);
}

/* Reply System Styles */
.replies-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

.reply-composer {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reply-input-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00326D;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.reply-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    background: #fafbfc;
}

.reply-input:focus {
    outline: none;
    border-color: #00326D;
    box-shadow: 0 0 0 3px rgba(0, 50, 109, 0.1);
    background: white;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    padding-left: 2.5rem;
}

.btn-reply {
    padding: 0.5rem 1rem;
    background: #00326D;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reply:hover {
    background: #00274A;
}

.replies-list {
    margin-top: 1rem;
}

.reply {
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reply:last-child {
    margin-bottom: 0;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.reply-author {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reply-content {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.reply-text {
    color: #374151;
    line-height: 1.5;
    font-size: 0.875rem;
}

.reply .reply-actions {
    display: flex;
    gap: 1rem;
    padding-left: 0;
    margin-left: 0;
}

.reply-action-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.reply-action-btn:hover {
    color: #00326D;
    background: #f3f4f6;
}

.reply-time {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.reply .author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.reply .reply-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
}

/* Feed Filters */
.feed-filters {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.clear-filters {
    font-size: 0.875rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.clear-filters:hover {
    color: #00326D;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: #00C764;
    background: #f0fdf4;
}

.filter-tag.active {
    background: #00C764;
    color: white;
    border-color: #00C764;
}

/* Post Menu Dropdown */
.post-menu-container {
    position: relative;
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 160px;
    z-index: 10;
    margin-top: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.15s;
}

.menu-item:hover {
    background-color: #f8fafc;
}

.menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.menu-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-header-left h1 {
    color: #1e293b;
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0;
}

.admin-header-left p {
    color: #64748b;
    margin-top: 0.25rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#admin-last-login {
    font-size: 0.875rem;
    color: #64748b;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-info span {
    font-weight: 500;
    color: #1e293b;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-logout:hover {
    background: #dc2626;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
}

.stat-card.alert span {
    color: #ef4444;
}

.admin-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.admin-section h2 {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.admin-posts-list,
.admin-alerts-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-post-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-post-item:last-child {
    border-bottom: none;
}

.admin-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.admin-post-author {
    font-weight: 500;
    color: #1e293b;
}

.admin-post-time {
    color: #64748b;
    font-size: 0.875rem;
}

.admin-post-content {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.admin-post-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-admin-action {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.btn-admin-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-admin-action.alert {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-admin-action.alert:hover {
    background: #fef2f2;
}

.no-posts,
.no-alerts {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Crisis Alerts Section */
.crisis-alerts-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 0;
}

.new-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.crisis-alerts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.alert-tier {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.alert-tier.crisis {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.alert-tier.concern {
    background: #fefce8;
    border: 2px solid #eab308;
}

.alert-tier.coaching {
    background: #f0fdf4;
    border: 2px solid #22c55e;
}

.tier-indicator {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

.alert-tier h3 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.alert-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.alert-tier.crisis .alert-count { color: #ef4444; }
.alert-tier.concern .alert-count { color: #eab308; }
.alert-tier.coaching .alert-count { color: #22c55e; }

.alert-tier p {
    font-size: 0.875rem;
    color: #64748b;
}

.crisis-alerts-list {
    max-height: 400px;
    overflow-y: auto;
}

.crisis-alert-item {
    padding: 1rem;
    border-left: 4px solid;
    margin-bottom: 2rem;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.crisis-alert-item.alert-level-crisis { 
    border-left-color: #ef4444; 
    background: #fef2f2;
}
.crisis-alert-item.alert-level-concern { 
    border-left-color: #eab308;
    background: #fefce8;
}
.crisis-alert-item.alert-level-coaching { 
    border-left-color: #22c55e;
    background: #f0fdf4;
}

/* Ensure proper spacing between crisis alert items */
#crisis-alerts-list .crisis-alert-item {
    margin-bottom: 2rem !important;
}

#crisis-alerts-list .crisis-alert-item:last-child {
    margin-bottom: 1rem;
}

/* Alert Header */
.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.alert-tier-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-tier-badge.alert-tier-crisis {
    background: #ef4444;
    color: white;
}

.alert-tier-badge.alert-tier-concern {
    background: #eab308;
    color: white;
}

.alert-tier-badge.alert-tier-coaching {
    background: #22c55e;
    color: white;
}

.alert-author {
    font-weight: 500;
    color: #1e293b;
}

.alert-time {
    color: #64748b;
    font-size: 0.875rem;
}

/* Alert Content */
.alert-content {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #374151;
}

/* Alert Keywords */
.alert-keywords {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Alert Actions */
.alert-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view-details,
.btn-quick-respond,
.btn-mark-handled {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid;
}

.btn-view-details {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-view-details:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-quick-respond {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-quick-respond:hover {
    background: #059669;
    border-color: #059669;
}

.btn-mark-handled {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-mark-handled:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.alert-meta-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.alert-tier {
    background: #1e293b;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.alert-timing {
    text-align: right;
}

.time-since-trigger {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

.alert-content-preview {
    margin: 0.75rem 0;
    line-height: 1.5;
    color: #374151;
}

.crisis-keyword {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-weight: 600;
}

.alert-priority-info {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: #f8fafc;
}

button.btn-view-details {
    background: #3b82f6 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    margin-right: 0.5rem !important;
    font-size: 14px !important;
    font-family: 'Quicksand', sans-serif !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 80px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

button.btn-view-details:hover {
    background: #2563eb !important;
}

button.btn-quick-respond {
    background: #10b981 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    margin-right: 0.5rem !important;
    font-size: 14px !important;
    font-family: 'Quicksand', sans-serif !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 100px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

button.btn-quick-respond:hover {
    background: #059669 !important;
}

/* General styling for all alert action buttons */
.alert-actions button {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer !important;
    margin-right: 0.5rem !important;
    display: inline-block !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-width: 80px !important;
    line-height: 1.2 !important;
}

.alert-actions .btn-mark-handled {
    background: #6b7280 !important;
}

.alert-actions .btn-mark-handled:hover {
    background: #4b5563 !important;
}

.alert-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.alert-type {
    background: #1e293b;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.alert-author { font-weight: 600; color: #1e293b; }
.alert-time { color: #64748b; }

.alert-content {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.5;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
}

.alert-actions button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.alert-actions button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Handled Alerts Styling */
.btn-show-handled {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-show-handled:hover {
    background: #2563eb;
}

.handled-alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.handled-alerts-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.125rem;
}

.btn-back-to-active {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-back-to-active:hover {
    background: #059669;
}

.handled-alert {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.handled-alert .alert-type.handled {
    background: #6b7280;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.handled-info {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
    border-left: 3px solid #64748b;
}

.handled-by, .action-taken {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.25rem;
}

.handled-by {
    font-weight: 500;
}

.btn-reopen, .btn-view-original {
    padding: 0.375rem 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    margin-right: 0.5rem !important;
    transition: all 0.15s !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.btn-reopen {
    background: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b !important;
}

.btn-reopen:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

.btn-view-original {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.btn-view-original:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.no-handled-alerts {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* New Activity Section */
.new-activity-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.activity-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.activity-card h3 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.activity-header .author {
    font-weight: 600;
    color: #1e293b;
}

.activity-header .time,
.activity-header .days-old {
    color: #64748b;
}

.activity-preview {
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.activity-item button {
    padding: 0.25rem 0.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.15s;
}

.activity-item button:hover {
    background: #2563eb;
}

.no-items,
.no-alerts {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

.more-items {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Community Health Metrics */
.health-metrics-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.time-period-toggle {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.period-btn:hover {
    background: #f8fafc;
}

.period-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.health-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.health-stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.health-stat-card h3 {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-note {
    font-size: 0.75rem;
    color: #64748b;
}

.threads-list {
    text-align: left;
}

.thread-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-author {
    color: #1e293b;
    font-weight: 500;
}

.thread-stats {
    color: #64748b;
}

/* Post Management Section */
.post-management-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-filters input,
.post-filters select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
}

.post-filters button {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.post-filters button:hover {
    background: #2563eb;
}

.all-posts-list {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 1rem;
}

.post-management-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.post-management-item.crisis-urgent {
    border-color: #ef4444;
    background: #fef2f2;
}

.post-management-item.crisis-high {
    border-color: #eab308;
    background: #fefce8;
}

.post-management-item.crisis-moderate {
    border-color: #22c55e;
    background: #f0fdf4;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.post-select {
    cursor: pointer;
}

.post-author {
    font-weight: 600;
    color: #1e293b;
}

.post-time,
.post-engagement {
    color: #64748b;
}

.post-content {
    color: #475569;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.post-actions button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.post-actions button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* View As Member Toggle */
.btn-view-as {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-view-as:hover {
    background: #059669;
}

.admin-viewing-as-member .admin-dashboard {
    display: none !important;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .crisis-alerts-grid,
    .activity-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .post-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .post-filters input,
    .post-filters select,
    .post-filters button {
        width: 100%;
    }
}

/* Alert Details Modal */
.alert-modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.alert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.alert-modal-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}

.alert-modal-content {
    padding: 2rem;
}

.alert-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

/* Dynamic border colors for alert meta section */
.alert-meta.alert-level-crisis {
    border-left-color: #ef4444; /* Red */
}

.alert-meta.alert-level-concern {
    border-left-color: #eab308; /* Yellow */
}

.alert-meta.alert-level-coaching {
    border-left-color: #22c55e; /* Green */
}

.alert-tier-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.alert-tier-badge.crisis {
    background: #ef4444;
}

.alert-tier-badge.concern {
    background: #eab308;
}

.alert-tier-badge.coaching {
    background: #22c55e;
}

.alert-time {
    color: #64748b;
    font-size: 0.875rem;
}

.alert-priority {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.875rem;
}

.alert-user-info,
.alert-content-section,
.user-outreach-section,
.email-templates-section,
.context-and-history,
.alert-actions-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.user-outreach-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.outreach-contact {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info strong {
    color: #1e293b;
    font-size: 1rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-email-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-actions-section {
    border-bottom: none;
}

.alert-user-info h3,
.alert-content-section h3,
.alert-context h3,
.user-history h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.user-email {
    color: #64748b;
    font-size: 0.875rem;
}

.user-status {
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.content-meta-inline {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    padding-left: 0.25rem;
}

.content-meta-inline .alert-tier-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.alert-content-text {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #374151;
}

/* Dynamic border colors for alert levels */
.alert-content-text.alert-level-crisis {
    border-left-color: #ef4444; /* Red */
}

.alert-content-text.alert-level-concern {
    border-left-color: #eab308; /* Yellow */
}

.alert-content-text.alert-level-coaching {
    border-left-color: #22c55e; /* Green */
}

.triggered-keywords {
    margin-top: 1rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-tag {
    padding: 0.25rem 0.5rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.keyword-tag.concern {
    background: #fef3c7;
    color: #ca8a04;
}

.keyword-tag.coaching {
    background: #dcfce7;
    color: #16a34a;
}

.context-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.conversation-thread {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-post {
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
}

.recent-post-time {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.recent-post-content {
    font-size: 0.65rem;
    color: #374151;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-respond,
.btn-escalate,
.btn-false-positive {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-respond {
    background: #10b981;
    color: white;
}

.btn-respond:hover {
    background: #059669;
}

.btn-escalate {
    background: #ef4444;
    color: white;
}

.btn-escalate:hover {
    background: #dc2626;
}

.btn-false-positive {
    background: #6b7280;
    color: white;
}

.btn-false-positive:hover {
    background: #4b5563;
}

.mark-handled-section h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

#action-taken-notes {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 0.75rem;
}

#action-taken-notes:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-mark-handled {
    padding: 0.75rem 1.5rem;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-mark-handled:hover {
    background: #1d4ed8;
}

.btn-mark-handled:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Mobile responsive styles for alert modal */
@media (max-width: 768px) {
    .alert-modal-container {
        width: 98%;
        max-height: 95vh;
    }
    
    .alert-modal-content {
        padding: 1rem;
    }
    
    .alert-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .context-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Alert Filter Controls */
.alert-filter-controls {
    margin: 1rem 0;
    text-align: center;
}

.btn-show-all {
    padding: 0.5rem 1rem;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-show-all:hover {
    background: #475569;
}

/* Active filter state for alert tier boxes */
.alert-tier.active-filter {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #ffffff;
}

.alert-tier.active-filter::after {
    content: "✓ Active Filter";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.alert-tier {
    position: relative;
    transition: all 0.15s ease;
}

.alert-tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Admin-only indicator for anonymous posts */
.admin-only {
    font-size: 0.75rem;
    color: #7c3aed;
    font-weight: 500;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Admin Analytics Section */
.admin-analytics-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.analytics-card h3 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.analytics-card h4 {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.stat-value.alert-warning {
    color: #dc2626;
    background: #fef2f2;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.keyword-list {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.keyword-item:last-child {
    border-bottom: none;
}

.keyword-name {
    color: #374151;
    font-weight: 500;
}

.keyword-count {
    color: #6b7280;
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.keyword-level {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    color: white;
    font-weight: 500;
    margin-left: 0.25rem;
}

.keyword-level.crisis {
    background: #ef4444;
}

.keyword-level.concern {
    background: #eab308;
}

.keyword-level.coaching {
    background: #22c55e;
}

.keyword-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-export-keywords,
.btn-view-trends {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-export-keywords:hover,
.btn-view-trends:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.level-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.level-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.level-stat.crisis {
    background: #fef2f2;
    color: #991b1b;
}

.level-stat.concern {
    background: #fefce8;
    color: #92400e;
}

.level-stat.coaching {
    background: #f0fdf4;
    color: #166534;
}


/* Enhanced User Contact Information */
.user-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.contact-primary {
    margin-bottom: 0.75rem;
}

.user-email-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.user-email {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 500;
    min-width: 200px;
}

.btn-copy-email {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-email:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.btn-copy-email svg {
    width: 14px;
    height: 14px;
}

.contact-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.registration-method {
    padding: 0.25rem 0.5rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Email Templates Section */
.email-templates-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.templates-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.template-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.template-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    flex: 1;
}

.btn-copy-template {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.btn-copy-template:hover {
    background: #4b5563;
    transform: scale(1.05);
}

.btn-copy-template svg {
    width: 12px;
    height: 12px;
}

.template-content {
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #374151;
    background: #fafafa;
    white-space: pre-line;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
}

.crisis-template {
    border-left: 4px solid #ef4444;
}

.crisis-template .template-header {
    background: #fef2f2;
}

.support-template {
    border-left: 4px solid #eab308;
}

.support-template .template-header {
    background: #fefce8;
}

.coaching-template {
    border-left: 4px solid #22c55e;
}

.coaching-template .template-header {
    background: #f0fdf4;
}

/* Copy feedback styling */
.copy-success {
    background: #10b981 !important;
}

.copy-success svg {
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Compact two-column layout for context and history */
.context-and-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.context-column,
.history-column {
    min-height: 200px;
}

.context-column h4,
.history-column h4 {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.context-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
}

.conversation-thread {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #374151;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.recent-post {
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

.recent-post-time {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.recent-post-content {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.3;
}

/* Make modal more compact */
.alert-modal-content {
    padding: 1.5rem;
}

.alert-meta {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
}

/* Reduce template content height */
.template-content {
    max-height: 160px;
    font-size: 0.7rem;
    padding: 0.75rem;
}

/* Mobile responsive for two-column layout */
@media (max-width: 768px) {
    .context-and-history {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .context-column,
    .history-column {
        min-height: auto;
    }
    
    .alert-modal-content {
        padding: 1rem;
    }
}

/* Edit Profile Modal */
.edit-profile-container {
    max-width: 500px;
}

.edit-profile-content .form-group {
    margin-bottom: 1.5rem;
}

.edit-profile-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2c5282;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.upload-controls {
    flex: 1;
}

.upload-controls .btn-secondary {
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

#linkedin-url {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#linkedin-url:focus {
    outline: none;
    border-color: #00a99d;
}

#profile-bio {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

#profile-bio:focus {
    outline: none;
    border-color: #00a99d;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.modal-actions .btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.modal-actions .btn-secondary:hover {
    background: #f8fafc;
}

.profile-update-success {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Member Management Styles */
.member-management-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.member-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.member-filters select,
.member-filters input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.member-filters button {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.member-filters button:hover {
    background: #2563eb;
}

.all-members-list {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.member-item:hover {
    background: #f9fafb;
}

.member-item:last-child {
    border-bottom: none;
}

.member-item.blocked {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.member-info {
    flex: 1;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.member-name {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.member-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.member-status.active {
    background: #d1fae5;
    color: #065f46;
}

.member-status.blocked {
    background: #fee2e2;
    color: #991b1b;
}

.member-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-type-member {
    background: #e0e7ff;
    color: #3730a3;
}

.user-type-coach {
    background: #fef3c7;
    color: #92400e;
}

.user-type-admin {
    background: #f3e8ff;
    color: #6b21a8;
}

.member-details {
    color: #6b7280;
    font-size: 0.875rem;
}

.member-email {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.member-dates {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.member-bio {
    margin-top: 0.5rem;
    font-style: italic;
}

.block-reason {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 4px;
    color: #991b1b;
    font-weight: 500;
}

.member-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-block-user {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-block-user:hover {
    background: #dc2626;
}

.btn-unblock-user {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-unblock-user:hover {
    background: #059669;
}

.btn-view-posts {
    padding: 0.5rem 1rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}

.btn-view-posts:hover {
    background: #4b5563;
}

.no-members {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Blocked User Experience Styles */
.blocked-user-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1);
}

.blocked-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.blocked-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.blocked-message {
    flex: 1;
}

.blocked-message h3 {
    margin: 0 0 0.5rem 0;
    color: #dc2626;
    font-size: 1.25rem;
    font-weight: 600;
}

.blocked-message p {
    margin: 0 0 1rem 0;
    color: #7f1d1d;
    line-height: 1.5;
}

.blocked-reason {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
}

.blocked-reason strong {
    color: #991b1b;
}

.blocked-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-appeal {
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-appeal:hover {
    background: #b91c1c;
}

.btn-guidelines {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s;
}

.btn-guidelines:hover {
    background: #dc2626;
    color: white;
}

/* Blocked Overlay for Post Composer */
.blocked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
    font-weight: 500;
    color: #666;
}

/* Appeal Modal Styles */
.appeal-container {
    max-width: 600px;
    width: 90%;
}

.appeal-content {
    padding: 2rem;
}

.appeal-intro {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    color: #0c4a6e;
    line-height: 1.6;
}

.appeal-contact-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.appeal-contact-info h4 {
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.appeal-contact-info p {
    margin: 0 0 0.75rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.appeal-contact-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #374151;
}

.appeal-contact-info li {
    margin-bottom: 0.5rem;
}

.appeal-contact-info a {
    color: #2563eb;
    text-decoration: none;
}

.appeal-contact-info a:hover {
    text-decoration: underline;
}

/* Guidelines Modal Styles */
.guidelines-container {
    max-width: 700px;
    width: 90%;
}

.guidelines-content {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.guidelines-section h3 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}

.guidelines-section h4 {
    margin: 1.5rem 0 0.75rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.guidelines-section p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    line-height: 1.6;
}

.guidelines-section ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
    color: #374151;
}

.guidelines-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive adjustments for blocked user elements */
@media (max-width: 768px) {
    .blocked-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .blocked-actions {
        flex-direction: column;
    }
    
    .appeal-container,
    .guidelines-container {
        width: 95%;
        margin: 0 auto;
    }
    
    .appeal-content,
    .guidelines-content {
        padding: 1.5rem;
    }
}