/* HEADER */
.header {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo img {
  height: 80px; /* begrens størrelsen */
  width: auto;  /* beholder proporsjoner */
}

.header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.header nav ul li a {
  text-decoration: none;
  color: #004080;
  font-weight: 600;
  transition: color 0.3s;
}

.header nav ul li a:hover {
  color: #0066cc;
}



.header .btn-login a {
  padding: 8px 18px;
  background: #0066cc;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.header .btn-login a:hover {
  background: #004080;
}

/* Gjør logoen tydelig klikkbar */
.header .logo a {
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.header .logo a:hover {
  transform: scale(1.05);
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  display: block !important;
  flex-direction: column !important;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  margin: 0 !important;
  text-align: left !important;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #004080;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f0f7ff;
  color: #0066cc;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.5rem 0;
}

/* Hamburger meny */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: #004080;
  border-radius: 2px;
}

/* Responsiv header */
@media (max-width: 768px) {
  .header nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: -100%;
    background: white;
    width: 100%;
    transition: left 0.3s ease;
    padding: 10px 0;
  }

  .header nav ul.active {
    left: 0;
  }

  .header nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile dropdown */
  .has-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: #f8fafc;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .has-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
  }

  .dropdown-menu li a {
    padding: 0.75rem 1.5rem;
  }

  .dropdown-toggle {
    justify-content: center;
  }
}


/* LOGIN */
.login-page {
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
  padding: 50px 20px;
  min-height: calc(100vh - 100px); /* trekker fra header-høyde */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.login-container {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  color: #00796b;
  text-align: center;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-container label {
  font-weight: 500;
  margin-bottom: 0.3rem;
  display: block;
}

.login-container input[type="email"],
.login-container input[type="password"] {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  width: 100%;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.login-container input:focus {
  border-color: #00796b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,121,107,0.2);
}

.login-container button {
  padding: 0.8rem 1rem;
  background: #00796b;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-container button:hover {
  background: #004d40;
  transform: translateY(-2px);
}

.login-container .links {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.login-container .links a {
  color: #00796b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-container .links a:hover {
  color: #004d40;
  text-decoration: underline;
}

.login-container .error {
  background: #ffebee;
  color: #c62828;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
  }
}



/* BUTTONS 1*/
.btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #004080;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #0066cc;
}

/* DASHBOARD */
.dashboard-page {
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info h1 {
    color: #00796b;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.user-category {
    background: #e0f2f1;
    color: #00796b;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.dashboard-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section h2 {
    color: #00796b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.student-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.student-card:hover {
    border-color: #00796b;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,121,107,0.15);
}

.student-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.student-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.student-action {
    color: #00796b;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-students {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-students-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.student-self-access {
    max-width: 500px;
    margin: 0 auto;
}

.access-card {
    background: linear-gradient(135deg, #00796b, #004d40);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,121,107,0.2);
}

.access-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.access-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.access-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.access-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.access-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Mobile responsiveness dashboard*/
@media (max-width: 768px) {
    .dashboard-page {
        padding: 15px;
    }
    
    .dashboard-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .user-info h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .student-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .access-card {
        padding: 1.5rem;
    }
}

/* ABOUT */
.about {
  padding: 60px 30px;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #004080;
}

.about-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.card h3 {
  margin-bottom: 10px;
  color: #004080;
}

/* NAV */
.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-login {
  padding: 8px 18px;
  background: #0066cc;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #004080;
}

/* ELEV PAGE */
.elev-page {
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.elev-container {
    max-width: 900px;
    margin: 0 auto;
}

.elev-header {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.elev-info h1 {
    color: #00796b;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.log-count {
    background: #e0f2f1;
    color: #00796b;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.add-log-btn {
    background: #00796b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.add-log-btn:hover {
    background: #004d40;
    transform: translateY(-2px);
}

.add-log-btn span {
    font-size: 1.2rem;
    font-weight: bold;
}

.logs-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.logs-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.log-card:hover {
    border-color: #00796b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,121,107,0.1);
}

.log-header {
    background: #f8f9fa;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.log-header:hover {
    background: #e9ecef;
}

.log-date-time {
    flex: 1;
}

.log-date {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.log-time {
    color: #666;
    font-size: 0.9rem;
}

.log-duration {
    background: #00796b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 1rem;
}

.expand-icon {
    color: #00796b;
    transition: transform 0.3s ease;
}

.log-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.log-content.expanded {
    max-height: 1000px;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.log-note {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.log-files {
    margin-top: 1.5rem;
}

.log-files h4 {
    color: #00796b;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00796b;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.file-link:hover {
    background: #e0f2f1;
    text-decoration: underline;
}

.no-logs {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-logs-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-logs h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.footer-actions {
    display: flex;
    justify-content: flex-start;
}

.back-btn {
    background: #6c757d;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.logout-form {
    margin: 0;
}

.logout-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #00796b;
    margin: 0;
    font-size: 1.5rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close:hover {
    background: #f1f1f1;
    color: #000;
}

.log-form {
    padding: 1rem 2rem 2rem 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0,121,107,0.1);
}

.file-input {
    padding: 0.5rem !important;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cancel-btn:hover {
    background: #545b62;
}

.save-btn {
    background: #00796b;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-btn:hover {
    background: #004d40;
}

/* Mobile responsiveness elev*/
@media (max-width: 768px) {
    .elev-page {
        padding: 15px;
    }
    
    .elev-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .elev-info h1 {
        font-size: 1.5rem;
    }
    
    .logs-section {
        padding: 1.5rem;
    }
    
    .log-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .log-duration {
        align-self: flex-end;
        margin-right: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .elev-header {
        padding: 1rem;
    }
    
    .logs-section {
        padding: 1rem;
    }
    
    .log-header {
        padding: 0.8rem;
    }
    
    .log-content.expanded {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .log-form {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
}


/* NYLOGG PAGE */
.nylogg-page {
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.nylogg-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    color: #00796b;
    margin: 0;
    font-size: 1.8rem;
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #6c757d;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.success-message {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    border: 3px solid #4caf50;
}

.success-icon {
    background: #4caf50;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
}

.success-content h3 {
    color: #4caf50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.view-logs-btn, .new-log-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.view-logs-btn {
    background: #00796b;
    color: white;
}

.view-logs-btn:hover {
    background: #004d40;
    transform: translateY(-2px);
}

.new-log-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.new-log-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.error-message {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-icon {
    background: #f44336;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.error-content {
    color: #c62828;
    font-weight: 500;
}

.log-form-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.log-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    color: #00796b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0f2f1;
}

.time-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-input, .form-select, .form-textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0,121,107,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-help {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.file-input {
    padding: 0.5rem !important;
    border: 2px dashed #dee2e6 !important;
    background: #f8f9fa !important;
    cursor: pointer;
}

.file-input:hover {
    border-color: #00796b !important;
    background: #e0f2f1 !important;
}

.file-info {
    margin-top: 0.5rem;
}

.file-info small {
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.cancel-btn, .submit-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.submit-btn {
    background: #00796b;
    color: white;
}

.submit-btn:hover {
    background: #004d40;
    transform: translateY(-2px);
}

/* Mobile responsiveness logg*/
@media (max-width: 768px) {
    .nylogg-page {
        padding: 15px;
    }
    
    .page-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .log-form {
        padding: 1.5rem;
    }
    
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    .success-message {
        padding: 2rem 1.5rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem;
    }
    
    .log-form {
        padding: 1rem;
    }
    
    .success-message {
        padding: 1.5rem 1rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-large: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* ===== PRICES SECTION ===== */
.prices {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.prices-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.time-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(45deg, transparent, var(--primary-light), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transition: var(--transition);
}

.price-card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.price-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-8px);
}

.price-card:hover .card-image {
    box-shadow: var(--shadow-large);
}

.price-card:hover img {
    transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-container,
    .prices-container {
        padding: 0 1.5rem;
    }
    
    .price-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text p {
        max-width: none;
    }
    
    .prices {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .price-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }
    
    .price-card {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-container,
    .prices-container {
        padding: 0 1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .price-cards {
        max-width: none;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.price-card:focus,
.btn-primary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 8rem 0 4rem;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content-about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-about h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.brand-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.about-content {
    padding: 4rem 0 6rem;
    background: #ffffff;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-image-container {
    margin-bottom: 3rem; /* litt mindre margin */
    text-align: center;
}

.about-hero-image {
    width: 100%;
    max-width: 400px; /* mindre og mer moderne størrelse */
    height: auto;
    border-radius: 20px; /* rundere kanter */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* mer subtil og moderne skygge */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* jevn overgang */
}

.about-hero-image:hover {
    transform: scale(1.05); /* litt større effekt */
    box-shadow: 0 15px 25px rgba(0,0,0,0.2); /* tydeligere hover-effekt */
}


.content-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.content-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.content-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.quote-container {
    margin-bottom: 4rem;
    text-align: center;
}

.inspirational-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    position: relative;
    margin: 0;
    box-shadow: var(--shadow-large);
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
}

.inspirational-quote p {
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}


/* ===== ABOUT PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 0 3rem;
    }
    
    .about-container {
        padding: 0 1.5rem;
    }
    
    .content-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .inspirational-quote {
        padding: 2.5rem 1.5rem;
    }
    
    .inspirational-quote p {
        font-size: 1.25rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .contact-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 0 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .inspirational-quote {
        padding: 2rem 1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
}

/* ===== AUTH RESULT PAGES (REGISTER, LOGIN RESULTS) ===== */
.auth-result {
    min-height: 80vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.auth-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-color);
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.result-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.result-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.result-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, currentColor, transparent);
    opacity: 0.2;
    z-index: -1;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.result-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem;
}

.btn-link:hover {
    color: var(--primary-color);
}

.additional-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.additional-info svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

/* ===== AUTH RESULT RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-result {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .auth-result-container {
        padding: 0 1.5rem;
    }
    
    .result-card {
        padding: 2rem 1.5rem;
    }
    
    .result-title {
        font-size: 1.75rem;
    }
    
    .result-message {
        font-size: 1rem;
    }
    
    .result-actions {
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-result-container {
        padding: 0 1rem;
    }
    
    .result-card {
        padding: 2rem 1rem;
    }
    
    .result-icon {
        width: 64px;
        height: 64px;
    }
    
    .result-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form-section {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit svg {
    transition: var(--transition);
}

.btn-submit:hover:not(:disabled) svg {
    transform: translateX(2px);
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.form-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

/* ===== Booking.php spesifikt ===== */
body.booking-page {
    padding-top: 0;
}

body.booking-page .skjema-container {
    padding: 1rem;
    margin: 0 auto;
    max-width: 600px;
}

/* Only apply relative positioning on desktop */
@media (min-width: 769px) {
    body.booking-page .header nav ul.active {
        position: relative;
        left: 0;
        box-shadow: none;
    }
}

/* Keep mobile behavior intact */
@media (max-width: 768px) {
    body.booking-page .header nav ul.active {
        position: absolute;
        left: 0;
        top: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}
/* ===== Mobilresponsivitet ===== */
@media (max-width: 768px) {
    body.booking-page .skjema-container {
        width: 90%;
    }

    /* Hamburger-meny vises på mobil */
    .header .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .header .hamburger span {
        display: block;
        height: 3px;
        width: 25px;
        background: #004080;
        border-radius: 2px;
    }

    .header nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -100%;
        background: white;
        width: 100%;
        transition: left 0.3s ease;
        padding: 10px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .header nav ul.active {
        left: 0;
    }

    .header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
}


/* ===== LOADING STATES ===== */
img {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* BODY & CONTAINER */
body {
  background: linear-gradient(to bottom right, #f4f6f8, #e0f7fa);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

.skjema-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.skjema-container:hover {
  transform: translateY(-4px);
}

.skjema-container h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #111;
}

/* LABELS & INPUTS */
label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  margin-top: 18px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input:focus, textarea:focus {
  border-color: #2c7a2c;
  box-shadow: 0 0 10px rgba(44,122,44,0.15);
  outline: none;
}

/* RADIO & CARD STYLE */
.radio-group.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.radio-group.cards label.card {
  flex: 1 1 45%;
  background: #f1f9f1;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-group.cards label.card:hover {
  background: #d8f0d8;
  transform: translateY(-2px);
}

.radio-group.cards input[type="radio"] {
  accent-color: #2c7a2c;
}

/* PRIS INFO */
#pris-info p {
  margin: 4px 0;
  font-weight: 500;
  font-size: 15px;
}

/* ERROR / SUCCESS */
.error-msg {
  color: #b00020;
  text-align: center;
  margin: 15px 0;
}

.success-msg {
  color: #2c7a2c;
  text-align: center;
  margin: 15px 0;
}

/* BUTTON 2*/
button[type="submit"] {
  width: 100%;
  background-color: #2c7a2c;
  color: #fff;
  font-size: 18px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #246b24;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media(max-width: 480px){
  .radio-group.cards label.card {
    flex: 1 1 100%;
  }

  .skjema-container {
    margin: 20px;
    padding: 20px;
  }
}

html {
  scroll-behavior: smooth;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #004080;
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* Form message styling for booking */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Fieldset reset for accessibility */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* ========================================
   IMPROVED HAMBURGER MENU
   ======================================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: transparent;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: #004080;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Animated hamburger to X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Hamburger hover effect */
.hamburger:hover span {
  background: #0066cc;
}

.hamburger:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 280px;
    background: white;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 20px 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .header nav ul.active {
    left: 0;
  }

  .header nav ul li {
    margin: 15px 0;
    text-align: left;
  }

  .header nav ul li a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
  }

  .header nav ul li a:hover,
  .header nav ul li a:focus {
    background: #f0f7ff;
  }
}

/* ========================================
   FOOTER STYLES
   ======================================== */

footer[role="contentinfo"] {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-content a {
  color: #64b5f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #90caf9;
  text-decoration: underline;
}

/* ========================================
   ENHANCED FOCUS STATES
   ======================================== */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* ========================================
   IMPROVED BUTTONS
   ======================================== */

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
  width: 300px;
  height: 300px;
}

/* Loading state for buttons */
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

button .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   IMPROVED CARDS
   ======================================== */

.price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.price-card:focus {
  outline: 3px solid #0066cc;
  outline-offset: 4px;
  border-radius: 16px;
}

.content-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hamburger span {
    transition: none;
  }

  .price-card:hover,
  .content-card:hover {
    transform: none;
  }
}

/* ========================================
   HIGH CONTRAST MODE SUPPORT
   ======================================== */

@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }

  .header nav ul li a {
    text-decoration: underline;
  }

  .price-card,
  .content-card {
    border: 2px solid #000;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .header,
  .hamburger,
  footer,
  .skip-link {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
  }

  .hero,
  .about-hero {
    background: none !important;
    color: #000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* ========================================
   COURSE PAGES (FAG)
   ======================================== */

.course-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.course-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.course-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.course-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.course-content {
  padding: 60px 20px;
  background: #f8fafc;
}

.course-container {
  max-width: 900px;
  margin: 0 auto;
}

.course-content .content-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.course-content .content-card h2 {
  color: #1a1a2e;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

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

.topic-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.topic-list li:last-child {
  border-bottom: none;
}

.topic-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.cta-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-top: 40px;
}

.cta-section h2 {
  color: #1a1a2e;
  margin-bottom: 15px;
}

.cta-section p {
  margin-bottom: 25px;
  color: #4a5568;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #2563eb;
  color: white;
}

/* ========================================
   RECRUITMENT PAGE (BLI LÆRER)
   ======================================== */

.recruit-hero {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.recruit-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.recruit-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.recruit-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.recruit-content {
  padding: 60px 20px;
  background: #f8fafc;
}

.recruit-container {
  max-width: 900px;
  margin: 0 auto;
}

.benefits-list,
.requirements-list,
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li strong {
  display: block;
  color: #059669;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.benefits-list li p {
  margin: 0;
  color: #4a5568;
}

.requirements-list li {
  padding: 8px 0 8px 25px;
  position: relative;
}

.requirements-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
}

.process-list {
  counter-reset: process;
}

.process-list li {
  padding: 20px 0 20px 60px;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.process-list li:last-child {
  border-bottom: none;
}

.process-list li::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: 0;
  top: 20px;
  width: 40px;
  height: 40px;
  background: #059669;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.process-list li strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.process-list li p {
  margin: 0;
  color: #4a5568;
}

.application-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.application-section h2 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.application-section > p {
  color: #4a5568;
  margin-bottom: 30px;
}

.application-form .form-group {
  margin-bottom: 20px;
}

.application-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.application-form input:focus,
.application-form textarea:focus {
  border-color: #059669;
  outline: none;
}

.form-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ========================================
   FAG GRID (TA OPP FAG)
   ======================================== */

.fag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.fag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f0f7ff;
  color: #2563eb;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.fag-link:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.fag-link:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .course-hero h1,
  .recruit-hero h1 {
    font-size: 2rem;
  }

  .course-intro,
  .recruit-intro {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .application-section {
    padding: 20px;
  }

  .fag-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
