/* Pratik Ekranları Genel Stilleri */
#main-menu-screen .main-content {
    flex-grow: 1;
}

.footer-bar {
    border-top: 1px solid var(--border-color);
    margin: 30px -40px -30px; /* Ekranın padding'ini sıfırlar */
    padding: 20px 40px;
    background-color: #f8f9fa;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    text-align: center;
}

.footer-bar label {
    font-weight: 500;
    margin-right: 10px;
    color: var(--text-light);
}

.footer-bar select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 15px;
    background-color: var(--surface-color);
}

.practice-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.practice-header .screen-title {
    margin: 0;
}

.score-display {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #e8f0fe;
    padding: 8px 16px;
    border-radius: 20px;
}

.practice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.option-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: all 0.2s ease;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(60,64,67,0.15);
    border-color: var(--primary-color);
}

.option-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.option-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Test Ekranı Stilleri */
.test-layout {
    display: flex;
    gap: 30px;
    height: 70vh;
}

.passage-container, .questions-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px; /* for scrollbar */
}

.passage-container h3, .questions-container h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
}

.passage-container p {
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

.word {
    cursor: pointer;
    transition: background-color 0.2s;
}
.word:hover {
    background-color: #e8f0fe;
}

#word-tooltip {
    position: absolute;
    background-color: var(--text-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.add-word-btn {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 24px;
    text-align: center;
    font-size: 18px;
}
.add-word-btn:disabled {
    background-color: var(--success-color);
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.question-block {
    margin-bottom: 30px;
}

.question-block p {
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.6;
}

.question-block .options-list button {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    font-weight: 400;
}
.question-block .options-list button:hover {
    background-color: #e8f0fe;
    border-color: var(--primary-color);
}

.question-block input[type="text"] {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 4px 2px;
    font-size: 15px;
    font-family: var(--font-family);
    width: 150px;
    text-align: center;
}
.question-block input[type="text"]:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Kelimelerim Ekranı */
.clear-btn {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--error-light);
    color: var(--error-color);
    padding: 8px 16px;
    font-size: 14px;
}
.clear-btn:hover {
    background-color: var(--error-color);
    color: white;
}

.word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.word-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.word-en {
    display: block;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.word-tr {
    display: block;
    color: var(--text-light);
    font-size: 15px;
}

.empty-list-message {
    text-align: center;
    color: var(--text-light);
    margin-top: 40px;
    font-size: 18px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .test-layout {
        flex-direction: column;
        height: auto;
    }
}
