/* Learning Loop Styles */

/* Add to Graph Button */
.add-to-graph-btn {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     border: none;
     border-radius: 12px;
     padding: 14px 24px;
     font-size: 1.05rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     width: 100%;
     margin: 0 auto;
}

.add-to-graph-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.add-to-graph-btn:active {
     transform: translateY(0);
}

/* Modal Styles */
.ll-modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.85);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 10000;
     animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
     from {
          opacity: 0;
     }

     to {
          opacity: 1;
     }
}

.ll-modal-content {
     background: linear-gradient(145deg, #1a1a24 0%, #2a2a3a 100%);
     border: 2px solid #667eea;
     border-radius: 16px;
     padding: 30px;
     max-width: 500px;
     width: 90%;
     max-height: 80vh;
     overflow-y: auto;
     box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
     animation: slideUp 0.3s ease;
}

@keyframes slideUp {
     from {
          opacity: 0;
          transform: translateY(30px);
     }

     to {
          opacity: 1;
          transform: translateY(0);
     }
}

.ll-modal-content h3 {
     color: #667eea;
     margin: 0 0 10px 0;
     font-size: 1.5rem;
}

/* Concept Cards */
#concept-list {
     display: flex;
     flex-direction: column;
     gap: 12px;
}

.concept-card {
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(102, 126, 234, 0.3);
     border-radius: 10px;
     padding: 15px;
     transition: all 0.3s ease;
     cursor: pointer;
}

.concept-card:hover {
     background: rgba(102, 126, 234, 0.1);
     border-color: #667eea;
     transform: translateX(4px);
}

.concept-card input[type="checkbox"] {
     margin-right: 12px;
     cursor: pointer;
     width: 18px;
     height: 18px;
     vertical-align: middle;
}

.concept-card label {
     display: flex;
     flex-direction: column;
     cursor: pointer;
     color: #e0e0e0;
}

.concept-card strong {
     color: #fff;
     font-size: 1.1rem;
     margin-bottom: 5px;
     display: flex;
     align-items: center;
     gap: 10px;
}

.concept-category {
     display: inline-block;
     background: rgba(102, 126, 234, 0.2);
     color: #a5b3ff;
     padding: 3px 10px;
     border-radius: 12px;
     font-size: 0.75rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
}

.concept-card p {
     color: #b0b0b0;
     font-size: 0.9rem;
     margin: 5px 0 0 0;
     line-height: 1.4;
}

/* Modal Buttons */
.ll-modal-btn {
     padding: 12px 24px;
     border-radius: 8px;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     border: none;
     transition: all 0.3s ease;
}

.ll-modal-btn-primary {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ll-modal-btn-primary:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.ll-modal-btn-secondary {
     background: rgba(255, 255, 255, 0.1);
     color: #e0e0e0;
     border: 1px solid rgba(255, 255, 255, 0.2);
}

.ll-modal-btn-secondary:hover {
     background: rgba(255, 255, 255, 0.15);
     border-color: rgba(255, 255, 255, 0.3);
}

/* Statistics Badge (for future stats dashboard) */
.stats-badge {
     display: inline-block;
     background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
     color: white;
     padding: 6px 12px;
     border-radius: 20px;
     font-size: 0.85rem;
     font-weight: 600;
     box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.weak-topic-indicator {
     display: inline-block;
     background: linear-gradient(135deg, #ffa726 0%, #ff6f00 100%);
     color: white;
     padding: 4px 10px;
     border-radius: 12px;
     font-size: 0.75rem;
     font-weight: 600;
     margin-left: 8px;
     animation: pulse 2s infinite;
}

@keyframes pulse {

     0%,
     100% {
          opacity: 1;
          transform: scale(1);
     }

     50% {
          opacity: 0.8;
          transform: scale(1.05);
     }
}

/* Dashboard Styles */
.dashboard-content {
     max-width: 600px;
     width: 95%;
}

.dashboard-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 20px;
     border-bottom: 1px solid rgba(102, 126, 234, 0.3);
     padding-bottom: 15px;
}

.close-btn {
     background: none;
     border: none;
     color: #888;
     font-size: 1.5rem;
     cursor: pointer;
     padding: 0 5px;
}

.close-btn:hover {
     color: #fff;
}

/* Stats Grid */
.stats-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 15px;
     margin-bottom: 25px;
}

.stat-card {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 12px;
     padding: 15px;
     text-align: center;
     border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-value {
     font-size: 1.8rem;
     font-weight: bold;
     color: #fff;
     margin-bottom: 5px;
}

.stat-label {
     font-size: 0.8rem;
     color: #aaa;
     text-transform: uppercase;
}

/* Sections */
.dashboard-section {
     margin-bottom: 25px;
}

.dashboard-section h4 {
     color: #a5b3ff;
     margin-bottom: 15px;
     font-size: 1rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
}

/* Weak Topics List */
.weak-topics-list {
     display: flex;
     flex-direction: column;
     gap: 12px;
}

.weak-topic-item {
     background: rgba(0, 0, 0, 0.2);
     padding: 10px;
     border-radius: 8px;
}

.topic-info {
     display: flex;
     justify-content: space-between;
     margin-bottom: 8px;
     font-size: 0.9rem;
}

.topic-name {
     color: #e0e0e0;
     font-weight: 600;
}

.topic-accuracy {
     color: #aaa;
}

.progress-bar-bg {
     height: 6px;
     background: #2a2a3a;
     border-radius: 3px;
     overflow: hidden;
}

.progress-bar-fill {
     height: 100%;
     border-radius: 3px;
     transition: width 0.5s ease;
}

/* History List */
.history-list {
     max-height: 200px;
     overflow-y: auto;
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 8px;
}

.history-item {
     display: flex;
     align-items: center;
     padding: 10px;
     border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.history-result {
     margin-right: 12px;
     font-size: 1.1rem;
}

.history-topic {
     flex: 1;
     color: #ddd;
     font-size: 0.9rem;
}

.history-time {
     color: #666;
     font-size: 0.8rem;
}

.empty-state {
     color: #666;
     font-style: italic;
     text-align: center;
     padding: 10px;
}

.dashboard-footer {
     display: flex;
     justify-content: flex-end;
     margin-top: 20px;
     border-top: 1px solid rgba(102, 126, 234, 0.3);
     padding-top: 15px;
}