﻿:root {
  --acad-navy: #1a2a3a;
  --acad-blue: #2c3e50;
  --acad-accent: #3498db;
  --acad-bg: #f4f7f6;
  --acad-white: #ffffff;
  --acad-text: #2c3e50;
  --acad-muted: #7f8c8d;
  --acad-border: #dcdde1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', 'Noto Serif SC', serif;
}

body {
  background: var(--acad-bg);
  height: 100vh;
  overflow: hidden;
}

.academic-app {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar - Task Area */
.sidebar-task {
  width: 40%;
  background: white;
  border-right: 1px solid var(--acad-border);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0,0,0,0.05);
  z-index: 10;
}

.academic-header {
  padding: 30px;
  background: var(--acad-navy);
  color: white;
}

.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--acad-accent);
  margin-bottom: 8px;
  font-weight: bold;
}

.academic-header h1 {
  font-size: 1.5rem;
}

.academic-nav-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn.active {
  background: var(--acad-accent);
  border-color: var(--acad-accent);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.task-section {
  margin-bottom: 30px;
}

.task-section h3 {
  font-size: 1.1rem;
  color: var(--acad-navy);
  border-bottom: 2px solid var(--acad-accent);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.task-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--acad-text);
}

.graph-box {
  background: #f8f9fa;
  border: 1px dashed var(--acad-accent);
  padding: 20px;
  border-radius: 8px;
  font-style: italic;
  font-size: 0.9rem;
}

.points-list {
  list-style: decimal inside;
}

.points-list li {
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--acad-text);
}

.redemittel-box {
  background: #f0f7ff;
  padding: 20px;
  border-radius: 12px;
}

.redemittel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.redemittel-tags span {
  background: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid var(--acad-border);
  color: var(--acad-accent);
}

/* Editor Area */
.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

.editor-nav {
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid var(--acad-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timer {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #e74c3c;
  font-size: 1.2rem;
}

.word-stats {
  font-size: 0.9rem;
  color: var(--acad-muted);
  font-weight: bold;
}

.btn-academic {
  background: var(--acad-accent);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-academic:hover {
  background: var(--acad-navy);
}

.academic-textarea {
  flex: 1;
  padding: 50px 80px;
  border: none;
  font-size: 1.2rem;
  line-height: 1.8;
  outline: none;
  background: transparent;
  resize: none;
  color: #2c3e50;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

#task-select option {
  background-color: var(--acad-navy);
  color: white;
  padding: 8px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    overflow-y: auto !important;
    height: auto !important;
  }
  
  .academic-app {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    overflow-y: auto !important;
  }
  
  .sidebar-task {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--acad-border) !important;
  }
  
  .scroll-content {
    padding: 20px 15px !important;
    overflow-y: visible !important;
    flex: none !important;
  }
  
  .editor-main {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
  }
  
  .editor-nav {
    padding: 10px 15px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }
  
  .academic-textarea {
    padding: 20px 15px !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    min-height: 400px !important;
    flex: none !important;
    background: white !important;
    border-top: 1px solid var(--acad-border) !important;
  }

  .academic-header {
    padding: 20px 15px !important;
  }

  .academic-nav-switcher {
    gap: 6px !important;
  }

  .nav-btn {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
  }
}

