@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle at center, #1a1e29 0%, #0a0c10 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    gap: 40px;
}

/* Settings Panel */
.controls-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.controls-panel h3 {
    font-size: 1.1rem;
    color: #4facfe;
    text-transform: uppercase;
    letter-spacing: 1px;
}

textarea {
    width: 100%;
    height: 150px;
    background: #000;
    color: #00ffcc;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    resize: none;
    font-family: monospace;
}

button {
    background: #4facfe;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #00f2fe;
    transform: translateY(-2px);
}

.capture-btn {
    background: #00ff88;
}

.capture-btn:hover {
    background: #00cc6a;
}

/* Capture Area & Glassmorphism */
.map-wrapper {
    padding: 20px; /* Gives nice breathing room in the screenshot */
    background: transparent;
}

.map-container {
    background: rgba(16, 20, 30, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(79, 172, 254, 0.1);
    width: 500px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.map-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

#class-title {
    font-size: 1rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#chapter-title {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 5px;
}

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

.topic-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #333;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Topic States (The Magic) */
.topic-item[data-state="active"] {
    border-left: 4px solid #00f2fe;
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    transform: scale(1.02);
}

.topic-item[data-state="active"]::after {
    content: '⏳';
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

.topic-item[data-state="completed"] {
    border-left: 4px solid #00ff88;
    background: rgba(0, 255, 136, 0.05);
    color: #8892b0;
    text-decoration: line-through;
}

.topic-item[data-state="completed"]::after {
    content: '✅';
    font-size: 1.2rem;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
