/* index.css - Moderniseret design med hamburger-menu */

html,
body {
 height: 100%;
 margin: 0;
 padding: 0;
}

body {
 margin: 0px;
 padding: 0px;
 line-height: 180%;
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 font-size: 14px;
 color: #333;
 background-color: #f5f7fa;
}

h1,
h2,
h3 {
 margin-top: 0px;
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 font-weight: 600;
 color: #2c3e50;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p,
ol,
ul {
 margin: 0px;
 padding: 0px;
}

ol {
 padding-left: 40px;
}

strong {
 color: #2c3e50;
 font-weight: 600;
}

a {
 color: #3498db;
 text-decoration: none;
 transition: color 0.3s ease;
}

a:hover {
 color: #2980b9;
 text-decoration: none;
}

a img {
 border: none;
}

img.border {
 border: 1px solid #e1e8ed;
 border-radius: 4px;
}

img.alignleft {
 float: left;
 border: 1px solid #e1e8ed;
 border-radius: 4px;
}

img.alignright {
 float: right;
}

img.aligncenter {
 margin: 0px auto;
}

/** WRAPPER */
.container {
 width: 1200px;
 margin: 0px auto;
 padding-top: 75px;
}

.clearfix {
 clear: both;
}

.text-center {
 text-align: center;
}

.quiz-mixquiz { 
  background-color: rgb(125, 156, 189);
}

.quiz-mixquizstx { 
  background-color: rgb(178, 52, 58);
}

.quiz-mixquiz-video { 
  background-color: rgb(152, 104, 124);
}

.quiz-mixquiz-videohf { 
  background-color: #16a085;
}

.quiz-mixquiz-videostx { 
  background-color: #16a085;
}



/** PAGE */
#page {
 overflow: hidden;
 margin-bottom: 10px;
 background: white;
 border-radius: 8px;
 box-shadow: 0 2px 4px rgba(0,0,0,0.08);
 padding: 20px;
}

/** HAMBURGER MENU */
.hamburger-menu {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 height: 60px;
 background: linear-gradient(135deg, #f0f8ff 0%, #c6e2ff 100%);
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 z-index: 1000;
 display: flex;
 align-items: center;
 padding: 0 20px;
}

.hamburger-button {
 width: 30px;
 height: 24px;
 position: relative;
 cursor: pointer;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.hamburger-button span {
 display: block;
 height: 3px;
 width: 100%;
 background: #003755;
 border-radius: 3px;
 transition: all 0.3s ease;
}

.hamburger-button.active span:nth-child(1) {
 transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-button.active span:nth-child(2) {
 opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
 transform: rotate(-45deg) translate(7px, -7px);
}

.site-title {
 color: #003755;
 font-size: 20px;
 font-weight: 600;
 margin-left: 20px;
 flex-grow: 1;
}

/* Anonym beskedformular styling */
#message-container {
  background: linear-gradient(135deg, #d4f1d4 0%, #a8e6a8 100%);
  padding: 15px;
  border-radius: 12px;
  width: 240px;
  max-width: 240px;
  box-shadow: 0 4px 15px rgba(168, 230, 168, 0.3);
  color: #333;
  box-sizing: border-box;
  margin-top: 20px;
}

#message-container p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

#anonymousMessageForm textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  font-size: 13px;
  border: 1px solid #a8e6a8;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 10px;
}

#anonymousMessageForm button {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: white;
  color: #2d7a2d;
  border: 1px solid #a8e6a8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#anonymousMessageForm button:hover:not(:disabled) {
  background: #e8f8e8;
  transform: translateY(-2px);
}

#anonymousMessageForm button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#message-status {
  margin: 10px 0;
  font-size: 13px;
  min-height: 20px;
}

/* Slide-out navigation */
.nav-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0,0,0,0.5);
 opacity: 0;
 visibility: hidden;
 transition: opacity 0.3s ease, visibility 0.3s ease;
 z-index: 999;
}

.nav-overlay.active {
 opacity: 1;
 visibility: visible;
}

.nav-panel {
 position: fixed;
 top: 0;
 left: -300px;
 width: 300px;
 height: 100%;
 background: white;
 box-shadow: 2px 0 10px rgba(0,0,0,0.1);
 transition: left 0.3s ease;
 z-index: 1001;
 overflow-y: auto;
}

.nav-panel.active {
 left: 0;
}

.nav-header {
 background: linear-gradient(135deg, #f0f8ff 0%, #c6e2ff 100%);
 padding: 20px;
 color: #003755;
}

.nav-header h3 {
 margin: 0;
 color: #003755;
 font-size: 18px;
}

.nav-menu {
 list-style: none;
 padding: 0;
 margin: 0;
}

.nav-menu li {
 border-bottom: 1px solid #e1e8ed;
}

.nav-menu a {
 display: block;
 padding: 15px 20px;
 color: #333;
 font-size: 15px;
 transition: background 0.3s ease;
}

.nav-menu a:hover {
 background: #f5f7fa;
 color: #3498db;
}

.nav-menu .dropdown-submenu {
 list-style: none;
 padding: 0;
 margin: 0;
 background: #f9f9f9;
}

.nav-menu .dropdown-submenu li {
 border-bottom: 1px solid #e1e8ed;
}

.nav-menu .dropdown-submenu a {
 padding-left: 40px;
 font-size: 14px;
}

/** CONTENT */
#content {
 width: 820px;
 padding: 15px 30px 30px 30px;
 background: white;
 border-radius: 8px;
 box-shadow: 0 2px 4px rgba(0,0,0,0.08);
 margin-left: 280px;
 margin-top: 40px;
}

#content p {
 margin: 15px 0;
 line-height: 1.8;
 color: #555;
}

/** SIDEBAR */
#sidebar {
 float: left;
 width: 240px;
 margin: 0px;
 padding: 0px 20px; 
 background: white;
 border-radius: 8px;
 box-shadow: 0 2px 4px rgba(0,0,0,0.08);
 margin-right: 20px;
}

#sidebar .buttons {
 position: relative;
 text-align: left;
 border-bottom: 2px solid #e1e8ed;
 margin-bottom: 20px;
 padding-bottom: 15px;
 padding-top: 50px;
}

#sidebar .buttons strong {
 color: #2c3e50;
 font-size: 16px;
}

/* Quiz type badges */
.quiz-badge {
 display: inline-block;
 padding: 2px 8px;
 border-radius: 4px;
 font-size: 0.75em;
 font-weight: bold;
 color: white;
 margin-right: 8px;
 vertical-align: middle;
 line-height: 1.4;
}

.quiz-mc { background-color: #007bff; }
.quiz-blocks { background-color: #ff8c00; }
.quiz-legacy { background-color: #aaaaaa; }
.quiz-mc-legacy { background-color: #aaaaaa; }
.quiz-exercise { background-color: #6a5acd; }
.quiz-matchord { background-color: #dc3545; }
.quiz-bevischat { background-color: #fb8500; }

/* COLLAPSE FUNKTIONALITET */
.collapse {
 display: none;
}

.collapse.show {
 display: block;
}

.collapsing {
 position: relative;
 height: 0;
 overflow: hidden;
 transition: height 0.35s ease;
}

.collapse-inner {
 padding-left: 20px;
}

.collapse-inner > .collapse-inner {
 padding-left: 30px;
}

.img_collapse {
 transition: transform 0.3s ease;
 transform: rotate(180deg);
}

.collapsed .img_collapse {
 transform: rotate(0deg);
}

/* Collapse headers styling - OPDATERET MED c1_07, c1_08, c1_09, c1_10, c1_11, c1_12 */
#c1, #c2, #c4,
#c1_00, #c1_01, #c1_02, #c1_03, #c1_04, #c1_05, #c1_06, #c1_07, #c1_08, #c1_09, #c1_10, #c1_11, #c1_12,
#c2_01, #c2_02, #c2_03, #c2_035, #c2_04, #c2_05, #c2_06, #c2_07, #c2_08, #c2_09, #c2_10,
#c4_01 {
 cursor: pointer;
 padding: 2px;
 background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
 border-radius: 6px;
 margin: 4px 0;
 transition: all 0.3s ease;
}

/* Fjern ekstra spacing i collapse headers - OPDATERET MED c1_07, c1_08, c1_09, c1_10, c1_11, c1_12 */
#c1 table, #c2 table, #c4 table,
#c1_00 table, #c1_01 table, #c1_02 table, #c1_03 table, #c1_04 table, #c1_05 table, #c1_06 table, #c1_07 table, #c1_08 table, #c1_09 table, #c1_10 table, #c1_11 table, #c1_12 table,
#c2_01 table, #c2_02 table, #c2_03 table, 
#c2_035 table, #c2_04 table, #c2_05 table, 
#c2_06 table, #c2_07 table, #c2_08 table, #c2_09 table, #c2_10 table, #c4_01 table {
  margin-bottom: 0;
}

#c1 td, #c2 td, #c4 td,
#c1_00 td, #c1_01 td, #c1_02 td, #c1_03 td, #c1_04 td, #c1_05 td, #c1_06 td, #c1_07 td, #c1_08 td, #c1_09 td, #c1_10 td, #c1_11 td, #c1_12 td,
#c2_01 td, #c2_02 td, #c2_03 td,
#c2_035 td, #c2_04 td, #c2_05 td,
#c2_06 td, #c2_07 td, #c2_08 td, #c2_09 td, #c4_01 td {
  padding: 0;
  vertical-align: middle;
}

#c1 h2, #c2 h2, #c4 h2,
#c1_00 h2, #c1_01 h2, #c1_02 h2, #c1_03 h2, #c1_04 h2, #c1_05 h2, #c1_06 h2, #c1_07 h2, #c1_08 h2, #c1_09 h2, #c1_10 h2, #c1_11 h2, #c1_12 h2,
#c2_01 h2, #c2_02 h2, #c2_03 h2,
#c2_035 h2, #c2_04 h2, #c2_05 h2,
#c2_06 h2, #c2_07 h2, #c2_08 h2, #c2_09 h2, #c4_01 h2 {
  margin: 0;
  padding: 0;
}

#c1:hover, #c2:hover, #c4:hover,
#c1_00:hover, #c1_01:hover, #c1_02:hover, #c1_03:hover, #c1_04:hover, #c1_05:hover, #c1_06:hover, #c1_07:hover, #c1_08:hover, #c1_09:hover, #c1_10:hover, #c1_11:hover, #c1_12:hover,
#c2_01:hover, #c2_02:hover, #c2_03:hover, #c2_035:hover, #c2_04:hover, #c2_05:hover, #c2_06:hover, #c2_07:hover, #c2_08:hover, #c2_09:hover,
#c4_01:hover {
 background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
 transform: translateX(5px);
}

/* Chat container styling */
#chat-container {
 background: linear-gradient(135deg, #f0f8ff 0%, #c6e2ff 100%);
 padding: 15px;
 border-radius: 12px;
 width: 240px;
 max-width: 240px;
 box-shadow: 0 4px 15px rgba(198, 226, 255, 0.3);
 color: #333;
 box-sizing: border-box; 
}

#chat-container p {
 color: #333;
 line-height: 1.6;
 margin-bottom: 15px;
}

#chatbox {
 background: white;
 border: 1px solid #c6e2ff;
 height: 150px;
 overflow-y: auto;
 padding: 12px;
 margin-bottom: 10px;
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 font-size: 13px;
 border-radius: 8px;
 color: #333;
}

#chat-input {
 display: flex;
 gap: 8px;
 align-items: stretch;
 width: 100%;
 box-sizing: border-box;
}

#msg {
 flex: 1;
 padding: 10px;
 font-size: 13px;
 border: 1px solid #c6e2ff;
 border-radius: 6px;
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 min-width: 0;
}

#chat-input button {
 padding: 8px 12px;
 font-size: 14px;
 background: white;
 color: #003755;
 border: 1px solid #c6e2ff;
 border-radius: 6px;
 cursor: pointer;
 font-weight: 600;
 transition: all 0.3s ease;
 flex-shrink: 0;
 min-width: 60px;
}

#chat-input button:hover {
 background: #e6f4ff;
 transform: translateY(-2px);
}

/* Ugedagsfarver */
body.monday #c1, body.monday #c2, body.monday #c4,
body.monday #c1_00, body.monday #c1_01, body.monday #c1_02, body.monday #c1_03, body.monday #c1_04, body.monday #c1_05, body.monday #c1_06, body.monday #c1_07, body.monday #c1_08, body.monday #c1_09, body.monday #c1_10, body.monday #c1_11, body.monday #c1_12,
body.monday #c2_01, body.monday #c2_02, body.monday #c2_03, body.monday #c2_035, body.monday #c2_04, body.monday #c2_05, body.monday #c2_06, body.monday #c2_07, body.monday #c2_08, body.monday #c2_09, body.monday #c2_10,
body.monday #c4_01 {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
body.tuesday #c1, body.tuesday #c2, body.tuesday #c4,
body.tuesday #c1_00, body.tuesday #c1_01, body.tuesday #c1_02, body.tuesday #c1_03, body.tuesday #c1_04, body.tuesday #c1_05, body.tuesday #c1_06, body.tuesday #c1_07, body.tuesday #c1_08, body.tuesday #c1_09, body.tuesday #c1_10, body.tuesday #c1_11, body.tuesday #c1_12,
body.tuesday #c2_01, body.tuesday #c2_02, body.tuesday #c2_03, body.tuesday #c2_035, body.tuesday #c2_04, body.tuesday #c2_05, body.tuesday #c2_06, body.tuesday #c2_07, body.tuesday #c2_08, body.tuesday #c2_09, body.tuesday #c2_10,
body.tuesday #c4_01 {
  background: linear-gradient(135deg, #f5f7fa 0%, #dee2e6 100%);
}
body.wednesday #c1, body.wednesday #c2, body.wednesday #c4,
body.wednesday #c1_00, body.wednesday #c1_01, body.wednesday #c1_02, body.wednesday #c1_03, body.wednesday #c1_04, body.wednesday #c1_05, body.wednesday #c1_06, body.wednesday #c1_07, body.wednesday #c1_08, body.wednesday #c1_09, body.wednesday #c1_10, body.wednesday #c1_11, body.wednesday #c1_12,
body.wednesday #c2_01, body.wednesday #c2_02, body.wednesday #c2_03, body.wednesday #c2_035, body.wednesday #c2_04, body.wednesday #c2_05, body.wednesday #c2_06, body.wednesday #c2_07, body.wednesday #c2_08, body.wednesday #c2_09, body.wednesday #c2_10,
body.wednesday #c4_01 {
  background: linear-gradient(135deg, #f1f3f5 0%, #e0e0e0 100%);
}
body.thursday #c1, body.thursday #c2, body.thursday #c4,
body.thursday #c1_00, body.thursday #c1_01, body.thursday #c1_02, body.thursday #c1_03, body.thursday #c1_04, body.thursday #c1_05, body.thursday #c1_06, body.thursday #c1_07, body.thursday #c1_08, body.thursday #c1_09, body.thursday #c1_10, body.thursday #c1_11, body.thursday #c1_12,
body.thursday #c2_01, body.thursday #c2_02, body.thursday #c2_03, body.thursday #c2_035, body.thursday #c2_04, body.thursday #c2_05, body.thursday #c2_06, body.thursday #c2_07, body.thursday #c2_08, body.thursday #c2_09, body.thursday #c2_10,
body.thursday #c4_01 {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
body.friday #c1, body.friday #c2, body.friday #c4,
body.friday #c1_00, body.friday #c1_01, body.friday #c1_02, body.friday #c1_03, body.friday #c1_04, body.friday #c1_05, body.friday #c1_06, body.friday #c1_07, body.friday #c1_08, body.friday #c1_09, body.friday #c1_10, body.friday #c1_11, body.friday #c1_12,
body.friday #c2_01, body.friday #c2_02, body.friday #c2_03, body.friday #c2_035, body.friday #c2_04, body.friday #c2_05, body.friday #c2_06, body.friday #c2_07, body.friday #c2_08, body.friday #c2_09, body.friday #c2_10,
body.friday #c4_01 {
  background: linear-gradient(135deg, #fafafa 0%, #eeeeee 100%);
}
body.saturday #c1, body.saturday #c2, body.saturday #c4,
body.saturday #c1_00, body.saturday #c1_01, body.saturday #c1_02, body.saturday #c1_03, body.saturday #c1_04, body.saturday #c1_05, body.saturday #c1_06, body.saturday #c1_07, body.saturday #c1_08, body.saturday #c1_09, body.saturday #c1_10, body.saturday #c1_11, body.saturday #c1_12,
body.saturday #c2_01, body.saturday #c2_02, body.saturday #c2_03, body.saturday #c2_035, body.saturday #c2_04, body.saturday #c2_05, body.saturday #c2_06, body.saturday #c2_07, body.saturday #c2_08, body.saturday #c2_09, body.saturday #c2_10,
body.saturday #c4_01 {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
body.sunday #c1, body.sunday #c2, body.sunday #c4,
body.sunday #c1_00, body.sunday #c1_01, body.sunday #c1_02, body.sunday #c1_03, body.sunday #c1_04, body.sunday #c1_05, body.sunday #c1_06, body.sunday #c1_07, body.sunday #c1_08, body.sunday #c1_09, body.sunday #c1_10, body.sunday #c1_11, body.sunday #c1_12,
body.sunday #c2_01, body.sunday #c2_02, body.sunday #c2_03, body.sunday #c2_035, body.sunday #c2_04, body.sunday #c2_05, body.sunday #c2_06, body.sunday #c2_07, body.sunday #c2_08, body.sunday #c2_09, body.sunday #c2_10,
body.sunday #c4_01 {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 767px) {
 body {
   font-size: 14px;
 }
 
 .container {
   width: 100%;
   padding: 70px 10px 10px 10px;
 }
 
 #sidebar {
   float: none;
   width: 100%;
   margin-right: 0;
   margin-bottom: 20px;
   box-sizing: border-box;
 }
 
 #content {
   float: none;
   width: 100%;
   padding: 20px;
   box-sizing: border-box;
   margin-left: 0;
 }
 
 #chat-container {
   width: 100%;
   max-width: 100%;
 }
 
 .hamburger-menu {
   padding: 0 15px;
 }
 
 .site-title {
   font-size: 16px;
 }
 
 table, tbody, tr, td {
   display: block;
   width: 100%;
   box-sizing: border-box;
 }
 
 td {
   margin-bottom: 20px;
 }
}