#chaldean-exact {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    max-width: 900px;
    margin: 30px auto;
    background: #0f0f23;
    color: #e0e7ff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.header h2 {
    margin: 0 0 8px;
    color: #00d4ff;
    font-size: 28px;
    text-align: center;
}

.header p {
    margin: 0 0 24px;
    text-align: center;
    font-size: 16px;
    opacity: 0.9;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.input-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #a0d2ff;
}

.input-group select, .controls button {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
}

.input-group select {
    background: #1a1a2e;
    color: #fff;
    cursor: pointer;
}

.controls button {
    background: #00d4ff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.controls button:hover {
    background: #00b8e6;
}

#clear {
    background: #ff4444;
    color: white;
}

#clear:hover {
    background: #cc0000;
}

#status {
    padding: 14px;
    background: #1a1a2e;
    border-radius: 10px;
    margin: 16px 0;
    text-align: center;
    font-weight: bold;
    color: #ffd700;
}
.progress {
    height: 36px;                    /* Taller bar */
    background: #1a1a2e;
    border-radius: 18px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #444;
}

.progress .bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 18px;
    transition: width 0.4s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.progress .percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;                 /* BIGGER text */
    font-weight: bold;
    color: white;
    text-shadow: 
        0 0 8px #00d4ff,
        0 0 16px #00ff88,
        0 0 24px #00d4ff;
    z-index: 2;
    letter-spacing: 1px;
    font-family: 'Segoe UI', sans-serif;
}

/* Optional: Pulsing animation when near 100% */
.progress .percent.done {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 8px #00d4ff, 0 0 16px #00ff88, 0 0 24px #00d4ff; }
    50% { text-shadow: 0 0 12px #00d4ff, 0 0 24px #00ff88, 0 0 36px #00d4ff; }
    100% { text-shadow: 0 0 8px #00d4ff, 0 0 16px #00ff88, 0 0 24px #00d4ff; }
}

.filters {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#search {
    flex: 1;
    min-width: 220px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    font-size: 16px;
}

#count {
    font-weight: bold;
    color: #00ff99;
    font-size: 16px;
}

#results {
    max-height: 65vh;
    overflow-y: auto;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #333;
}

.word-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    transition: 0.2s;
}

.word-item:nth-child(even) {
    background: #16213e;
}

.word-item:hover {
    background: #1e2a4d;
}

.word {
    font-weight: bold;
    color: #00ff99;
    letter-spacing: 1px;
}

.calc {
    color: #ffd700;
    font-size: 14px;
}

.target {
    background: #00d4ff;
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

.highlight {
    background: #00ff8822 !important;
    border-left: 4px solid #00ff88;
}

@media (max-width: 600px) {
    .controls, .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .input-group {
        width: 100%;
    }
}