/* Learning Assessment Panel Styles */
/* Position: Fixed to right bottom corner */

.learning-assessment-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.learning-assessment-panel.collapsed {
    width: auto;
    height: auto;
    padding: 10px 15px;
    cursor: pointer;
}

.learning-assessment-panel.collapsed .learning-panel-content {
    display: none;
}

.learning-assessment-panel.collapsed .learning-panel-header {
    margin-bottom: 0;
}

.learning-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffd700;
}

.learning-panel-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
}

.learning-collapse-btn {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.learning-collapse-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.bloom-item {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
    transition: all 0.3s;
}

.bloom-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.bloom-item.completed {
    background: rgba(76, 175, 80, 0.2);
    border-left-color: #4CAF50;
}

.bloom-checkbox {
    display: none;
}

.bloom-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
}

.bloom-emoji {
    font-size: 1.3em;
    margin-right: 8px;
    min-width: 30px;
    text-align: center;
}

.bloom-text {
    flex: 1;
    color: #fff;
}

.bloom-level {
    font-size: 0.8em;
    color: #a8d0ff;
    font-weight: bold;
    margin-top: 2px;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.bloom-checkbox:checked + .bloom-label .custom-checkbox {
    background: #4CAF50;
    border-color: #4CAF50;
}

.bloom-checkbox:checked + .bloom-label .custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.learning-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.learning-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ffd700);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.learning-completion-message {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    margin-top: 10px;
    display: none;
}

/* Remembered Banner */
.learning-remembered-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.learning-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.learning-banner-emoji {
    font-size: 1.5em;
}

.learning-banner-text {
    font-weight: bold;
}

.learning-banner-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.learning-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .learning-assessment-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .learning-remembered-banner {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
