* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #232f3e;
    --secondary-color: #ff9900;
    --text-color: #232f3e;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a4a5e 100%);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Analytics Charts Section */
.analytics-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
    text-align: center;
}

.chart-container canvas {
    max-height: 250px;
}

@media (max-width: 768px) {
    .analytics-section {
        grid-template-columns: 1fr;
    }
    
    .chart-container canvas {
        max-height: 200px;
    }
}

.search-section {
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
}

.filtered-count {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

select, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

select:hover, .btn-secondary:hover {
    border-color: var(--secondary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: #ec8b00;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.stat-card.active {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fff5e6 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.stat-card.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Card vote success animation */
.post-card.vote-success {
    animation: cardGlow 1s ease-out;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: var(--shadow); }
    50% { 
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
        transform: translateY(-4px);
    }
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-summary {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
    margin: 12px 0;
    padding-left: 12px;
    border-left: 3px solid var(--secondary-color);
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    font-weight: 600;
    color: var(--secondary-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    select, .btn-secondary {
        width: 100%;
    }
}

/* Voting Section Styles */
.vote-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vote-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.vote-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.vote-btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vote-btn.needs-update:not(.disabled):hover {
    border-color: #2196F3;
    background: #E3F2FD;
}

.vote-btn.remove-post:not(.disabled):hover {
    border-color: #f44336;
    background: #FFEBEE;
}

.vote-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Vote button click animation */
.vote-btn:not(.disabled):active {
    transform: scale(0.95);
}

.vote-btn.voting {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.vote-icon {
    font-size: 1.5rem;
}

.vote-label {
    font-weight: 600;
    color: var(--text-color);
}

.vote-count {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    transition: all 0.3s;
}

/* Vote count increment animation */
.vote-count.incrementing {
    animation: countPop 0.5s ease-out;
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); background: #4CAF50; }
    100% { transform: scale(1); }
}

.voted-message {
    text-align: center;
    font-size: 0.85rem;
    color: #4CAF50;
    font-weight: 600;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #4CAF50;
    color: white;
}

.notification.error {
    background: #f44336;
    color: white;
}

.notification.info {
    background: #2196F3;
    color: white;
}

@media (max-width: 768px) {
    .vote-buttons {
        flex-direction: column;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 1.5s ease-out forwards;
}

.confetti:nth-child(2n) { background: #4CAF50; }
.confetti:nth-child(3n) { background: #2196F3; }
.confetti:nth-child(4n) { background: #FF9800; }
.confetti:nth-child(5n) { background: #E91E63; }

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Success checkmark animation */
.vote-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    animation: checkmarkPop 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* Ripple effect on button click */
.vote-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Stat card color coding */
.stat-card[data-filter="all"] .stat-number {
    color: #232f3e;
}

.stat-card[data-filter="needs-review"] .stat-number {
    color: #9E9E9E;
}

.stat-card[data-filter="needs-update"] .stat-number {
    color: #2196F3;
}

.stat-card[data-filter="remove-post"] .stat-number {
    color: #f44336;
}

.stat-card[data-filter="most-voted"] .stat-number {
    color: #4CAF50;
}

/* Stat card active states with color coding */
.stat-card[data-filter="needs-update"].active {
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.stat-card[data-filter="remove-post"].active {
    background: linear-gradient(135deg, #FFEBEE 0%, #ffffff 100%);
    border-color: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.stat-card[data-filter="most-voted"].active {
    background: linear-gradient(135deg, #E8F5E9 0%, #ffffff 100%);
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.stat-card[data-filter="needs-review"].active {
    background: linear-gradient(135deg, #F5F5F5 0%, #ffffff 100%);
    border-color: #9E9E9E;
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
}

/* Tooltip for stat cards */
.stat-card::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}

.stat-card:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Crawl button styles */
.btn-crawl {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-crawl:hover:not(:disabled) {
    border-color: #2196F3;
    background: #E3F2FD;
    transform: translateY(-1px);
}

.btn-crawl:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-crawl.crawling {
    border-color: #2196F3;
    background: #E3F2FD;
    animation: crawlPulse 2s ease-in-out infinite;
}

@keyframes crawlPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.crawl-icon {
    font-size: 1.2rem;
    display: inline-block;
}

.btn-crawl.crawling .crawl-icon {
    animation: spin 2s linear infinite;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.comments-container {
    margin-bottom: 24px;
    min-height: 100px;
}

.loading-comments {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-comments .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-comments p {
    font-size: 1rem;
    margin: 0;
}

.comment-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 3px solid var(--secondary-color);
    animation: commentSlideIn 0.3s ease-out;
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-timestamp {
    color: #999;
}

.comment-text {
    color: var(--text-color);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-form {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.char-count {
    font-size: 0.85rem;
    color: #999;
}

.btn-submit-comment {
    padding: 10px 24px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-comment:hover:not(:disabled) {
    background: #ec8b00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-submit-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #E3F2FD;
    color: #2196F3;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.comment-badge:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.comment-badge.has-comments {
    background: #FFF3E0;
    color: #FF9800;
}

.comment-badge.has-comments:hover {
    background: #FF9800;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .btn-submit-comment {
        width: 100%;
    }
}


/* Status badges */
.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.status-badge.resolved {
    background: #4CAF50;
    color: white;
}

.status-badge.archived {
    background: #9E9E9E;
    color: white;
}

/* Label badges */
.label-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: help;
    transition: all 0.3s;
    border: 2px solid transparent;
    margin-bottom: 12px;
}

.label-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Label category colors */
.label-announcement {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1976D2;
    border-color: #1976D2;
}

.label-best-practices {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #388E3C;
    border-color: #388E3C;
}

.label-curation {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #F57C00;
    border-color: #F57C00;
}

.label-customer-story {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    color: #7B1FA2;
    border-color: #7B1FA2;
}

.label-technical-how-to {
    background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
    color: #00796B;
    border-color: #00796B;
}

.label-thought-leadership {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
    color: #C2185B;
    border-color: #C2185B;
}

.label-icon {
    font-size: 1rem;
}

.label-confidence {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 4px;
}

/* Label Filters Section */
.label-filters-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.label-filters-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.label-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.label-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}

.label-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.label-filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Active state colors for each label */
.label-filter-btn[data-label="all"].active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.label-filter-btn[data-label="Announcement"].active {
    background: #1976D2;
    color: white;
    border-color: #1976D2;
}

.label-filter-btn[data-label="Best Practices"].active {
    background: #388E3C;
    color: white;
    border-color: #388E3C;
}

.label-filter-btn[data-label="Curation"].active {
    background: #F57C00;
    color: white;
    border-color: #F57C00;
}

.label-filter-btn[data-label="Customer Story"].active {
    background: #7B1FA2;
    color: white;
    border-color: #7B1FA2;
}

.label-filter-btn[data-label="Technical How-To"].active {
    background: #00796B;
    color: white;
    border-color: #00796B;
}

.label-filter-btn[data-label="Thought Leadership"].active {
    background: #C2185B;
    color: white;
    border-color: #C2185B;
}

.label-filter-count {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.label-filter-btn.active .label-filter-count {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .label-filters {
        flex-direction: column;
    }
    
    .label-filter-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Resolved post styling */
.post-card.status-resolved {
    opacity: 0.85;
    border-left: 4px solid #4CAF50;
}

.post-card.status-archived {
    opacity: 0.7;
    border-left: 4px solid #9E9E9E;
}

.resolved-message {
    text-align: center;
    font-size: 0.85rem;
    color: #4CAF50;
    font-weight: 600;
    margin-top: 8px;
}

/* Action section */
.action-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.resolve-btn, .unresolve-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    background: white;
    color: #4CAF50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.resolve-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.unresolve-btn {
    border-color: #FF9800;
    color: #FF9800;
}

.unresolve-btn:hover {
    background: #FF9800;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.resolve-btn:disabled, .unresolve-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.resolve-icon, .unresolve-icon {
    font-size: 1.2rem;
}


/* Article Proposal Feature */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.btn-propose-article {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.btn-propose-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.propose-icon {
    font-size: 20px;
}

.modal-large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.proposal-intro {
    background: #f0f7ff;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    margin-bottom: 24px;
    color: #2c5282;
}

.proposal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-group textarea,
.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    color: #718096;
    font-size: 12px;
}

.btn-submit-proposal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit-proposal:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit-proposal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.proposal-result {
    animation: fadeIn 0.5s ease;
}

.result-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.result-success h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.success-message {
    margin: 0;
    opacity: 0.95;
}

.proposal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.detail-section h4 {
    margin: 0 0 12px 0;
    color: #2d3748;
    font-size: 16px;
}

.detail-section p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.result-category {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.result-outline {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
}

.result-outline li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.result-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    background: #e6f2ff;
    color: #2c5282;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.proposal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.proposal-note {
    background: #fffaf0;
    border: 2px solid #fbd38d;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    color: #744210;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-propose-article {
        width: 100%;
        justify-content: center;
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    .proposal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}


/* Authentication Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

#authContainer {
    position: relative;
}

.btn-sign-in {
    background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sign-in:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.4);
}

.user-profile {
    position: relative;
}

.user-menu-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-btn:hover {
    border-color: #FF9900;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2);
}

.user-avatar {
    font-size: 18px;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.user-dropdown {
    font-size: 10px;
    color: #666;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
}

.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.user-menu-email {
    font-size: 13px;
    color: #666;
    word-break: break-word;
}

.user-menu-item {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.user-menu-item:hover {
    background: #f5f5f5;
}

.user-menu-item:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.user-menu-item:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-name {
        display: none;
    }
}
