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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.card-header h2 {
    font-size: 1.5em;
}

.card-body {
    padding: 30px;
}

.status-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1.1em;
}

.score-display {
    margin: 30px 0;
}

.score-display.hidden {
    display: none;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.ring-progress {
    fill: none;
    stroke: #667eea;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#score-number {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
}

.score-percent {
    font-size: 1.5em;
    color: #999;
}

.score-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.detail-item .label {
    font-weight: 600;
    color: #666;
}

.detail-item .value {
    color: #333;
    font-family: 'Courier New', monospace;
}

.btn-primary {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li strong {
    color: #333;
}

/* Score color indicators */
.score-low { color: #e74c3c !important; }
.score-medium { color: #f39c12 !important; }
.score-good { color: #27ae60 !important; }
.score-excellent { color: #2ecc71 !important; }

.ring-low { stroke: #e74c3c !important; }
.ring-medium { stroke: #f39c12 !important; }
.ring-good { stroke: #27ae60 !important; }
.ring-excellent { stroke: #2ecc71 !important; }

/* Text input styling */
#user-text-input {
    transition: border-color 0.3s, box-shadow 0.3s;
}

#user-text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#user-text-input::placeholder {
    color: #999;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    #score-number {
        font-size: 2em;
    }
}

