.topics-layout{display:flex;gap:30px;align-items:flex-start}
.topics-sidebar{width:300px;flex-shrink:0;background:#fff;border-radius:24px;box-shadow:0 8px 30px rgba(0,0,0,.05);padding:24px}
body.dark-theme .topics-sidebar{background:#1e293b}
.topics-sidebar-header h1{font-size:28px;font-weight:700;color:#111827;margin:0 0 30px 0}
body.dark-theme .topics-sidebar-header h1{color:#e2e8f0}
.topics-sidebar-header label{display:block;font-weight:500;margin-bottom:8px;font-size:.9rem;color:#334155}
body.dark-theme .topics-sidebar-header label{color:#cbd5e1}
.topics-sidebar-header select{width:100%;padding:10px 12px;border-radius:16px;border:1.5px solid #e2e8f0;font-family:inherit;font-size:.9rem;background:#fff}
body.dark-theme .topics-sidebar-header select{background:#0f172a;border-color:#334155;color:#e2e8f0}
.button-group{margin-top:20px;display:flex;flex-direction:column;gap:12px}
.button-group .btn{width:100%;justify-content:center;padding:12px 0;font-size:.9rem;border-radius:12px}
.btn.auto{background:#7c3aed;color:#fff}
.btn.auto:hover{background:#6d28d9}
body.dark-theme .btn.auto{background:#6d28d9}
body.dark-theme .btn.auto:hover{background:#5b21b6}
.topics-main{flex:1;min-width:0;background:transparent;padding:0}
.topics-header-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.topics-header-bar h2{margin:0;font-size:20px;font-weight:600;color:#1f2937}
body.dark-theme .topics-header-bar h2{color:#e2e8f0}
.topics-count{color:#6b7280;font-size:14px}
body.dark-theme .topics-count{color:#94a3b8}
.day-card{background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px rgba(0,0,0,.05);margin-bottom:24px;overflow:hidden}
body.dark-theme .day-card{background:#0f172a}
.day-card-header{background:#f3f4f6;padding:16px 24px;font-weight:600;font-size:16px;color:#111827;border-bottom:1px solid #e5e7eb}
body.dark-theme .day-card-header{background:#1e293b;color:#e2e8f0;border-bottom-color:#334155}
.day-card-header .day-date{font-weight:400;color:#6b7280}
body.dark-theme .day-card-header .day-date{color:#94a3b8}
.topic-item{padding:16px 24px;border-bottom:1px solid #f3f4f6}
.topic-item:last-child{border-bottom:none}
body.dark-theme .topic-item{border-bottom-color:#1e293b}
.topic-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.topic-header .badge{display:inline-block;padding:2px 12px;border-radius:9999px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.topic-title{font-weight:600;font-size:15px;color:#1f2937}
body.dark-theme .topic-title{color:#f1f5f9}
.topic-desc{font-size:13px;color:#6b7280;margin-top:6px}
body.dark-theme .topic-desc{color:#94a3b8}
.topic-actions{display:flex;gap:12px;flex-shrink:0}
.action-icon{background:0 0;border:none;cursor:pointer;color:#6b7280;transition:color .2s;font-size:18px;padding:4px}
.action-icon.edit:hover{color:#2563eb}
.action-icon.delete:hover{color:#dc2626}
body.dark-theme .action-icon{color:#94a3b8}
body.dark-theme .action-icon.edit:hover{color:#60a5fa}
body.dark-theme .action-icon.delete:hover{color:#f87171}
.empty-message{text-align:center;color:#94a3b8;padding:40px}
.full-schedule-wrapper{overflow-x:auto}
.full-schedule-table{width:100%;border-collapse:collapse;font-size:.85rem;min-width:600px}
.full-schedule-table th,.full-schedule-table td{border:1px solid #e2e8f0;padding:10px 8px;vertical-align:top;text-align:left}
body.dark-theme .full-schedule-table th,body.dark-theme .full-schedule-table td{border-color:#334155}
.full-schedule-table th{background:#f8fafc;font-weight:600;position:sticky;top:0}
body.dark-theme .full-schedule-table th{background:#0f172a;color:#e2e8f0}
.full-schedule-subject{font-weight:500;background:#f1f5f9;width:180px}
body.dark-theme .full-schedule-subject{background:#1e293b}
.full-schedule-topic{max-width:220px;word-break:break-word}
#addTopicForm .form-group textarea,#editTopicForm .form-group textarea{width:100%;padding:12px 14px;border-radius:16px;border:1.5px solid #e2e8f0;font-family:'Inter',sans-serif;font-size:.9rem;background:#fff;color:#1e293b;resize:none;transition:border-color .2s,box-shadow .2s}
#addTopicForm .form-group textarea:focus,#editTopicForm .form-group textarea:focus{outline:0;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.2)}
body.dark-theme #addTopicForm .form-group textarea,body.dark-theme #editTopicForm .form-group textarea{background:#0f172a;border-color:#334155;color:#e2e8f0}
body.dark-theme #addTopicForm .form-group textarea:focus,body.dark-theme #editTopicForm .form-group textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.2)}
@media(max-width:800px){.topics-layout{flex-direction:column}.topics-sidebar{width:100%}}