/* 小区运营页面样式 */

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    margin-right: 10px;
}

.sidebar-menu a:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-menu li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 30px;
    background: #f9fafb;
}

.content-section {
    display: none;
}

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

/* 兼容新版 section 容器的显隐切换 */
.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-content p {
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-trend.up {
    background: #dcfce7;
    color: #16a34a;
}

.stat-trend.down {
    background: #fef2f2;
    color: #dc2626;
}

/* 图表容器 */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.chart-header h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.chart-controls select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
}

.chart-content {
    height: 300px;
    position: relative;
}

/* 排行列表 */
.ranking-list {
    max-height: 300px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.ranking-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
}

.ranking-item:nth-child(1) .ranking-number {
    background: #fef3c7;
    color: #d97706;
}

.ranking-item:nth-child(2) .ranking-number {
    background: #f3f4f6;
    color: #6b7280;
}

.ranking-item:nth-child(3) .ranking-number {
    background: #fef2f2;
    color: #dc2626;
}

.ranking-item:nth-child(n+4) .ranking-number {
    background: #f9fafb;
    color: #6b7280;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.ranking-meta {
    font-size: 12px;
    color: #6b7280;
}

.ranking-value {
    text-align: right;
    color: #374151;
    font-weight: 600;
}

/* 数据表格 */
.data-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.table-header h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.table-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-controls input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 200px;
}

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

#community-table {
    width: 100%;
    border-collapse: collapse;
}

#community-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

#community-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

#community-table tbody tr:hover {
    background: #f9fafb;
}

.table-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.page-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f3f4f6;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #374151;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    min-width: 120px;
}

/* 小区网格 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.community-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.community-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.community-info {
    padding: 20px;
}

.community-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.community-location {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.community-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

.community-actions {
    display: flex;
    gap: 8px;
}

.community-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
}

/* 小区详情 */
.community-detail-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.detail-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.community-info h2 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.community-meta {
    display: flex;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
}

.community-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 图片轮播 */
.community-gallery {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.gallery-main {
    position: relative;
    margin-bottom: 16px;
}

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

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
}

.gallery-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
                            justify-content: center;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border: 2px solid #667eea;
}

/* 信息区域 */
.info-section,
.rating-section,
.data-section,
.transaction-section {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.info-section h3,
.rating-section h3,
.data-section h3,
.transaction-section h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item label {
    color: #6b7280;
    font-weight: 500;
    min-width: 80px;
}

.info-item span {
    color: #374151;
    font-weight: 500;
}

/* 评分区域 */
.rating-overview {
    display: flex;
    gap: 40px;
    align-items: center;
}

.overall-rating {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    min-width: 150px;
}

.rating-score {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 8px;
}

.rating-text {
    color: #6b7280;
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-item span:first-child {
    min-width: 80px;
    color: #374151;
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-item span:last-child {
    min-width: 30px;
    text-align: right;
    color: #374151;
    font-weight: 600;
}

/* 数据卡片 */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.data-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.data-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.data-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.data-card:nth-child(1) .data-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.data-card:nth-child(2) .data-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.data-card:nth-child(3) .data-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.data-card:nth-child(4) .data-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.data-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.data-content p {
    color: #6b7280;
    margin-bottom: 8px;
}

.data-trend {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.data-trend.up {
    background: #dcfce7;
    color: #16a34a;
}

.data-trend.down {
    background: #fef2f2;
    color: #dc2626;
}

.data-trend:not(.up):not(.down) {
    background: #f3f4f6;
    color: #6b7280;
}

/* 成交图表 */
.transaction-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-container {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
}

.chart-container h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.chart-container canvas {
    max-height: 250px;
}

/* VR列表 */
.vr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vr-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.vr-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.vr-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vr-info {
    padding: 20px;
}

.vr-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.vr-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.vr-actions {
    display: flex;
    gap: 8px;
}

.vr-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
}

/* 分析图表 */
.analysis-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* 片区列表 */
.area-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.area-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.area-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.area-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.area-stat {
    text-align: center;
}

.area-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

.area-stat-label {
    font-size: 12px;
    color: #6b7280;
}

.area-actions {
    display: flex;
    gap: 8px;
}

/* 维护人列表 */
.maintainer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.maintainer-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.maintainer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.maintainer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.maintainer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.maintainer-info h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.maintainer-info p {
    color: #6b7280;
    font-size: 14px;
}

.maintainer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.maintainer-stat {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.maintainer-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: block;
    margin-bottom: 4px;
}

.maintainer-stat-label {
    font-size: 12px;
    color: #6b7280;
}

.maintainer-actions {
    display: flex;
    gap: 8px;
}

/* 状态徽章 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.inactive {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.modal-header h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .transaction-charts {
        grid-template-columns: 1fr;
    }
    
    .analysis-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .vr-list {
        grid-template-columns: 1fr;
    }
    
    .area-list {
        grid-template-columns: 1fr;
    }
    
    .maintainer-list {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 20px;
    }
    
    .data-cards {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .sidebar {
        background: #1f2937;
        border-right-color: #374151;
    }
    
    .sidebar-header h3 {
        color: #f9fafb;
    }
    
    .sidebar-menu a {
        color: #d1d5db;
    }
    
    .sidebar-menu a:hover {
        background: #374151;
        color: #f9fafb;
    }
    
    .main-content {
        background: #111827;
    }
    
    .stat-card,
    .chart-card,
    .data-table-card,
    .community-card,
    .area-card,
    .maintainer-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .stat-content h3,
    .chart-header h3,
    .table-header h3,
    .section-header h2,
    .community-name,
    .area-name,
    .maintainer-info h4 {
        color: #f9fafb;
    }
    
    .stat-content p,
    .chart-controls select,
    .table-controls input,
    .filter-group label,
    .info-item label,
    .community-location,
    .community-meta,
    .rating-text,
    .rating-item span:first-child,
    .data-content p,
    .maintainer-info p,
    .maintainer-stat-label,
    .area-stat-label {
        color: #d1d5db;
    }
    
    .info-item span,
    .rating-item span:last-child,
    .data-content h4,
    .maintainer-stat-value,
    .area-stat-value {
        color: #f9fafb;
    }
    
    .modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .modal-header h3,
    .form-group label {
        color: #f9fafb;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
    
    #community-table th {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    #community-table td {
        border-color: #374151;
        color: #d1d5db;
    }
    
    #community-table tbody tr:hover {
        background: #374151;
    }
    
    .overall-rating,
    .data-card,
    .maintainer-stat,
    .chart-container {
        background: #374151;
    }
    
    .rating-bar {
        background: #4b5563;
    }
    
    .stat-trend.up {
        background: #065f46;
        color: #6ee7b7;
    }
    
    .stat-trend.down {
        background: #991b1b;
        color: #fca5a5;
    }
    
    .status-badge.active {
        background: #065f46;
        color: #6ee7b7;
    }
    
    .status-badge.inactive {
        background: #991b1b;
        color: #fca5a5;
    }
    
    .status-badge.pending {
        background: #92400e;
        color: #fcd34d;
    }
}
