* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color : #fff;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #111;
    color: #e4e4e4;
    min-height: 100vh;
    padding: 20px;
} */

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

header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/*h1 {*/
/*    font-size: 2.5em;*/
/*    background: linear-gradient(135deg, #de2573 0%, #764ba2 100%);*/
/*    -webkit-background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*    background-clip: text;*/
/*    margin-bottom: 10px;*/
/*}*/

.subtitle {
    color: #a0a0a0;
    font-size: 1.1em;
}

.input-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #b8b8b8;
    font-size: 1.1em;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e4e4e4;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #de2573;
    box-shadow: 0 0 20px rgba(222, 37, 115, 0.3);
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e4e4e4;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #de2573;
    box-shadow: 0 0 20px rgba(222, 37, 115, 0.3);
}

.btn {
    background: linear-gradient(135deg, #de2573 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(222, 37, 115, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(222, 37, 115, 0.6);
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(222, 37, 115, 0.5);
}

.card-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #de2573;
    font-weight: 600;
}

.card-value {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #de2573 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-top: 8px;
}

.score-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-header {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #de2573;
    font-weight: 700;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.score-label {
    font-size: 1.1em;
    color: #b8b8b8;
}

.score-note {
    margin-top: 15px;
    padding: 12px;
    background: rgba(222, 37, 115, 0.1);
    border-radius: 8px;
    border-left: 3px solid #de2573;
}

.score-note small {
    color: #a0a0a0;
    font-size: 0.9em;
    line-height: 1.5;
}

.score-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #de2573;
}

.score-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
}

.badge-perfect {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.badge-excellent {
    background: linear-gradient(135deg, #de2573 0%, #764ba2 100%);
    color: white;
}

.badge-good {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-normal {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.badge-low {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
}

.wordcloud-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wordcloud-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #b8b8b8;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

#wordcloud {
    width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 10px;
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.keyword-table th,
.keyword-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.keyword-table th {
    background: rgba(222, 37, 115, 0.2);
    color: #de2573;
    font-weight: 600;
}

.keyword-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.density-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.density-fill {
    height: 100%;
    background: linear-gradient(90deg, #de2573 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

canvas {
    max-height: 400px;
}

/* 진단 결과 섹션 */
.diagnosis-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diagnosis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.diagnosis-icon {
    font-size: 2em;
}

.diagnosis-header h2 {
    font-size: 1.8em;
    color: #de2573;
    font-weight: 700;
    margin: 0;
}

.diagnosis-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diagnosis-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 1.05em;
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.diagnosis-item:hover {
    transform: translateX(5px);
}

.diagnosis-item-icon {
    font-size: 1.5em;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.diagnosis-item-text {
    flex: 1;
    line-height: 1.5;
}

/* 진단 타입별 스타일 */
.diagnosis-success {
    background: rgba(56, 239, 125, 0.1);
    border-left-color: #38ef7d;
    width: 100%;
}

.diagnosis-success .diagnosis-item-icon {
    color: #38ef7d;
}

.diagnosis-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.diagnosis-warning .diagnosis-item-icon {
    color: #ffc107;
}

.diagnosis-error {
    background: rgba(245, 87, 108, 0.1);
    border-left-color: #f5576c;
}

.diagnosis-error .diagnosis-item-icon {
    color: #f5576c;
}

.diagnosis-info {
    background: rgba(222, 37, 115, 0.1);
    border-left-color: #de2573;
}

.diagnosis-info .diagnosis-item-icon {
    color: #de2573;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    .results {
        grid-template-columns: 1fr;
    }
    
    .diagnosis-item {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .diagnosis-header h2 {
        font-size: 1.5em;
    }
}

.search-container{
    display: block;
}
