.ikdc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 32px;
}

.ikdc-header {
    text-align: center;
    margin-bottom: 40px;
}

.ikdc-header h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e293b, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.ikdc-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.ikdc-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 50px;
}

.ikdc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.ikdc-tab {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #64748b;
    border-radius: 40px;
    transition: all 0.3s;
}

.ikdc-tab.active {
    background: #2c7da0;
    color: white;
}

.ikdc-method-panel {
    display: none;
}

.ikdc-method-panel.active {
    display: block;
}

#ikdc-text-input {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

#ikdc-text-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.ikdc-stats {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 20px;
}

.ikdc-url-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
}

.ikdc-analyze-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ikdc-analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.ikdc-loader {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.ikdc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2c7da0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ikdc-results-section {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin-top: 30px;
}

.ikdc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f6;
}

.ikdc-results-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.ikdc-actions {
    display: flex;
    gap: 12px;
}

.ikdc-icon-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.ikdc-icon-btn:hover {
    background: #e2e8f0;
}

.ikdc-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eef2f6;
}

.summary-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.summary-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #0f172a;
}

.summary-label {
    font-size: 12px;
    color: #64748b;
}

.ikdc-density-gauge {
    margin-bottom: 35px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
}

.ikdc-density-gauge h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.gauge-container {
    max-width: 600px;
}

.gauge-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f97316, #22c55e, #ef4444);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}

.ikdc-keywords-table-wrapper {
    margin-bottom: 35px;
}

.ikdc-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ikdc-table-header h4 {
    margin: 0;
}

.ikdc-filter {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
}

.ikdc-filter input, .ikdc-filter select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ikdc-table-wrapper {
    overflow-x: auto;
}

.ikdc-keywords-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ikdc-keywords-table th {
    text-align: left;
    padding: 12px 12px;
    background: #f8fafc;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.ikdc-keywords-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f6;
}

.ikdc-keywords-table tr:hover {
    background: #f8fafc;
}

.density-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.density-ideal { background: #dcfce7; color: #166534; }
.density-low { background: #fef9c3; color: #854d0e; }
.density-high { background: #fee2e2; color: #991b1b; }

.ikdc-wordcloud {
    margin-bottom: 35px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
    text-align: center;
}

.wordcloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.cloud-word {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    background: white;
    color: #2c7da0;
    font-size: 14px;
    transition: all 0.2s;
    cursor: default;
}

.cloud-word:hover {
    transform: scale(1.05);
    background: #2c7da0;
    color: white;
}

.ikdc-recommendations {
    margin-bottom: 25px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 20px;
}

.recommendations-list {
    margin-top: 12px;
}

.recommendation-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0f2fe;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.recommendation-icon {
    font-size: 18px;
}

.ikdc-disclaimer {
    background: #e6f7e6;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 12px;
    color: #2e7d32;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 24px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.ikdc-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.url-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .ikdc-container {
        padding: 20px 15px;
    }
    
    .ikdc-header h1 {
        font-size: 1.8rem;
    }
    
    .ikdc-tool-wrapper {
        padding: 20px;
    }
    
    .ikdc-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ikdc-table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}