/* Base Layout */
.dnd-lt-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dnd-lt-screen {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Center everything by default */
}

/* Audio Player Centering */
.dnd-lt-audio-box {
    margin: 30px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dnd-lt-question-image {
    max-width: 100%;
    max-height: 200px;
    margin: 20px auto 0;
    /* Add top margin */
    display: block;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dnd-lt-play-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #2271b1;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Actions Centering */
.dnd-lt-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Phase 2 Buttons */
.dnd-lt-verify-buttons {
    display: flex;
    justify-content: center;
    /* Center buttons */
    gap: 15px;
    width: 100%;
}

.dnd-lt-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #f0f0f1;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.dnd-lt-btn-success {
    background-color: #f0fff4;
    color: #046c4e;
    /* Darker green text */
    border: 1px solid #48bb78;
}

.dnd-lt-btn-success:hover {
    background-color: #c6f6d5;
}

.dnd-lt-btn-danger {
    background-color: #fff5f5;
    color: #c53030;
    /* Darker red text */
    border: 1px solid #f56565;
}

.dnd-lt-btn-danger:hover {
    background-color: #fed7d7;
}

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

/* History List fixes */
.dnd-lt-h-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    text-align: left;
    /* Keep history items left aligned */
}

.dnd-lt-h-header,
.dnd-lt-h-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Practice Input */
.dnd-lt-practice-box {
    margin: 20px auto;
    max-width: 100%;
    width: 100%;
}

#dnd-lt-practice-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
    background: #f9f9f9;
}

#dnd-lt-practice-input:focus {
    border-color: #2271b1;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Start Button Refinement */
#dnd-lt-show-instruction-btn,
#dnd-lt-start-test-btn {
    background-color: #e6fffa;
    /* Light green */
    color: #2c7a7b;
    border: 2px solid #38b2ac;
    font-weight: 600;
    font-size: 1.1em;
    padding: 12px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#dnd-lt-show-instruction-btn:hover,
#dnd-lt-start-test-btn:hover {
    background-color: #38b2ac;
    /* Darker green */
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Instructions Screen */
.dnd-lt-instructions {
    text-align: left;
    margin: 20px 0;
}

.dnd-lt-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #fcfcfc;
    border-radius: 8px;
    border: 1px solid #eee;
}

.dnd-lt-step-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.dnd-lt-step-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.dnd-lt-step-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.dnd-lt-step-content ul {
    margin: 10px 0 0 20px;
    padding: 0;
    list-style: disc;
    font-size: 14px;
    color: #555;
}