.kdc-container { max-width: 850px; margin: 20px auto; background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); font-family: 'Segoe UI', sans-serif; }
.kdc-header { text-align: center; margin-bottom: 25px; }
.kdc-header h2 { color: #2c3e50; margin: 0; }
.kdc-header p { color: #7f8c8d; font-size: 14px; }

#kdc-text-input { width: 100%; height: 250px; padding: 15px; border: 2px solid #eef0f2; border-radius: 10px; font-size: 16px; outline: none; transition: 0.3s; box-sizing: border-box; resize: vertical; }
#kdc-text-input:focus { border-color: #3498db; }

.kdc-stats { display: flex; justify-content: space-between; padding: 10px 5px; font-size: 14px; color: #666; }
#kdc-analyze-btn { width: 100%; padding: 15px; background: #3498db; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 16px; margin-top: 10px; transition: 0.3s; }
#kdc-analyze-btn:hover { background: #2980b9; }

.kdc-results { margin-top: 30px; border-top: 2px solid #f8f9fa; padding-top: 25px; }
.kdc-tabs { display: flex; gap: 5px; margin-bottom: 20px; }
.kdc-tab { flex: 1; padding: 10px; border: 1px solid #ddd; background: #f8f9fa; cursor: pointer; border-radius: 5px; font-weight: 600; color: #666; }
.kdc-tab.active { background: #3498db; color: white; border-color: #3498db; }

.kdc-table-wrap { overflow-x: auto; }
#kdc-table { width: 100%; border-collapse: collapse; text-align: left; }
#kdc-table th { padding: 12px; border-bottom: 2px solid #eee; color: #2c3e50; font-size: 14px; }
#kdc-table td { padding: 12px; border-bottom: 1px solid #f1f1f1; font-size: 15px; color: #444; }
.density-bar { height: 6px; background: #eee; border-radius: 10px; margin-top: 5px; overflow: hidden; width: 100px; }
.density-fill { height: 100%; background: #3498db; }