:root {
  --clr: #636363;
}
/* Top header */
.top-header {
  background: rgba(193, 0, 42, 0.95);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-header img {
  height: 90px;
  width: auto;
}

.top-header h1 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
}

.compact-nav {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 1rem;
  margin: 1rem auto;
  max-width: 950px;
  font-family: "Poppins", sans-serif;
}

.compact-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.compact-nav li {
  display: flex;
}

.compact-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #f9f9f9;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  transition: all 0.25s ease-in-out;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  min-width: 70px;
  text-align: center;
}

.compact-nav a:hover {
  background-color: #c1002a;
  color: white;
  transform: translateY(-3px);
}

.compact-nav li.active a {
  background-color: #c1002a;
  color: white;
}

.compact-nav a span {
  margin-top: 0.25rem;
}

.compact-nav ion-icon {
  font-size: 1.3rem;
  font-weight: 300; /* ensures thinner icon look */
  line-height: 1;
}

/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}


/* Header Styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(193, 0, 42, 0.95);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
}

header img {
  margin-right: 2rem;
  width: 130px;
  height: 130px;
}

header h1 {
  font-size: 1.5rem;
  margin-left: 1rem;
}

section h2,
section h3 {
  color: #c1002a;
  font-weight: 600;
  margin-bottom: 1rem;
}

section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Main Content Styles */
main {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

section {
  border-left: 5px solid #c1002a;
  padding-left: 1.5rem;
  margin-bottom: 3rem;
  background-color: #fff;
}

section h2 {
  font-size: 1.8rem;
  color: #c1002a;
  padding-left: 10px;
  margin-bottom: 1rem;
  clear: both;
}

section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

ul li {
  margin-bottom: 0.7rem;
}

.clearfix {
  overflow: auto;
  border: 5px double rgb(193, 0, 42);
  padding: 10px;
}

.img1 {
  float: right;
}

.images {
  margin-top: 100px;
  position: relative;
  border: 5px double rgb(193, 0, 42);
  overflow: auto;
  width: 400px;
  height: 470px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.images img.active {
  opacity: 1;
}

.pic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
}

.pic .content {
  flex: 1;
  margin-right: 2rem;
}
.game-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 2rem;
  gap: 2rem;
}
.game-left {
  flex: 1;
}
.game-right {
  flex-shrink: 0;
  width: 200px;
  margin-top: 70px;
}
.game-right img {
  width: 200px;
  height: auto;
  border: 3px solid rgb(193, 0, 42);
  box-shadow: 0 4px 8px rgb(62, 62, 84);
}
#game {
  margin: 1rem 0;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  border: 5px double rgb(193, 0, 42);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
}
#game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgb(193, 0, 42);
  box-sizing: border-box;
}
/* About us */
.gallery {
  width: 400px;
  display: flex;
  overflow-x: scroll;
}
.gallery div {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 20px;
  padding: 10px;
  flex: none;
}
.gallery div img {
  width: 100%;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10% auto;
}
#backBtn,
#nextBtn {
  width: 50px;
  cursor: pointer;
  margin: 40px;
}
.gallery div img:hover {
  filter: grayscale(0);
  cursor: pointer;
  transform: scale(1.1);
}
/* ContactUs */
.hero {
  width: 100%;
  height: 100vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), #c5cce1), url(Images/contact.jpg);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
form {
  margin-top: 70px;
  width: 90%;
  max-width: 600px;
}
.input-group {
  margin-bottom: 30px;
  position: relative;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  outline: 0;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 15px;
}
.item.error {
  border: 1px solid red;
}
label {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px;
  color: #fff;
  cursor: text;
  transition: 0.2s;
}
button {
  padding: 10px 0;
  color: #fff;
  outline: none;
  background: transparent;
  border: 1px solid #fff;
  width: 100%;
  cursor: pointer;
}
input:focus ~ label,
input:valid ~ label,
textarea:focus ~ label,
textarea:valid ~ label {
  top: -35px;
  font-size: 14px;
}

/* AboutUs */

.gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
}
.gallery {
  width: 900px;
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
}
.gallery div {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 10px;
  padding: 10px;
  flex: none;
}
.gallery div img {
  width: 100%;
  filter: grayscale(100%);
  transition: transform 0.5s;
}
.gallery div img:hover {
  filter: grayscale(0);
  cursor: pointer;
  transform: scale(1.1);
}
.gallery::-webkit-scrollbar {
  display: none;
}
#backBtn,
#nextBtn {
  width: 50px;
  cursor: pointer;
  margin: 40px;
}

.KhIMU {
  float: right;
  margin: 0 0 1rem 1rem; /* Adjust spacing as needed */
  width: 200px; /* Set the image width */
  height: auto;
}
.leo {
  float: right;
  margin: 0 0 1rem 1rem; /* Adjust spacing as needed */
  width: 300px; /* Set the image width */
  height: auto;
}
#threedd {
  width: 500px;
  height: 450px;
  margin-left: 200px;
}
.float-right {
  float: right;
  margin: 0 0 1rem 1rem; /* Adjust spacing as needed */
  width: 500px; /* Set the image width */
  height: auto; /* Maintain aspect ratio */
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Information */

.right {
  float: right;
  margin: 0 0 1rem 1rem;
  width: 250px;
  height: auto;
}

@media (max-width: 768px) {
  .navigation {
    flex-direction: column;
    height: auto;
  }

  .navigation ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navigation ul li {
    width: 70px;
  }

  header h1 {
    font-size: 1.5rem;
  }
}


/* Login Box Styles */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* Centrerar vertikalt */
}

.login-box {
  background-color: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 300px;
}

.login-box h2 {
  color: #c1002a; /* Röd färg som header */
  margin-bottom: 1.5rem;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #c1002a;
  border-radius: 8px;
  font-size: 1rem;
  color: #000; /* Synlig text */
  background-color: #fff; /* Vit bakgrund */
}

.login-box input::placeholder {
  color: #999; /* Placeholder-text */
}

.login-box button {
  width: 100%;
  padding: 10px;
  background-color: #c1002a;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.login-box button:hover {
  background-color: #a00025;
}

.login-box .error {
  color: red;
  margin-top: 10px;
  font-size: 0.9rem;
}
/* Surgeons Dashboard Styling */
.surgeons-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrerar rubrik och knappar */
  margin-top: 50px;
}

.dashboard-title {
  color: #c1002a; /* Röd färg som header */
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 3px solid #c1002a; /* Dekorativ linje under rubrik */
  padding-bottom: 10px;
}

.menu {
  display: flex;
  flex-direction: column; /* Knappar under varandra */
  gap: 15px;
  width: 200px; /* Standardbredd på knappar */
}



/* ===== Upload Scan Page ===== */

.upload-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.upload-section {
  border-left: 5px solid #c1002a;
  padding-left: 1.5rem;
}

.upload-section h2 {
  color: #c1002a;
  margin-bottom: 1rem;
}

.upload-box {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upload-btn {
  padding: 10px 18px;
  background-color: #c1002a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.upload-btn:hover {
  background-color: #a00023;
}

.upload-hint {
  font-size: 0.9rem;
  color: #666;
}

.upload-preview {
  margin-top: 2rem;
  height: 240px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.placeholder-text {
  color: #999;
  font-style: italic;
}

.error-message {
  margin-top: 1rem;
  color: #c1002a;
  font-weight: 500;
  display: none;
}

/* ===== Assess Wound Page ===== */

.assess-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.assess-section {
  border-left: 5px solid #c1002a;
  padding-left: 1.5rem;
}

.assess-section h2 {
  color: #c1002a;
  margin-bottom: 0.5rem;
}

.assess-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.save-btn {
  grid-column: span 2;
  margin-top: 1.5rem;
  padding: 12px;
  background-color: #c1002a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.save-btn:hover {
  background-color: #a00023;
}

.assess-form label {
  position: static;
  padding: 0;
  color: #333;
}
.segment-container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.segment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.segment-results {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.segment-box {
  width: 100%;
  text-align: center;
}

.placeholder {
  height: 220px;
  border: 2px dashed #c1002a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}
.segment-form label {
  font-weight: 600;
  color: #c1002a;
  margin-bottom: 5px;
}
/* ===== Edit Profile Page ===== */
.profile-container {
  max-width: 400px;
  margin: 60px auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.profile-container h2 {
  color: #c1002a;
  margin-bottom: 20px;
}

.profile-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #c1002a;
  font-size: 1rem;
}

.profile-container button {
  width: 100%;
  padding: 10px;
  background-color: #c1002a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.profile-container button:hover {
  background-color: #a00025;
}

.success-message {
  margin-top: 15px;
  color: green;
  font-weight: 500;
}

.view-section {
  margin-top: 50px;
  text-align: center;
}

.view-section h2 {
  color: #c1002a;
  margin-bottom: 20px;
}

.scan-container {
  width: 320px;
  height: 320px;
  margin: 0 auto 20px;
  border: 3px solid #c1002a;
  border-radius: 10px;
  overflow: hidden;
}

.scan-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.scan-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.scan-controls button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background-color: #c1002a;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.scan-controls button:hover {
  background-color: #a00025;
}

/* ===== Print Page ===== */

.print-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.print-section {
  border-left: 5px solid #c1002a;
  padding-left: 1.5rem;
}

.print-preview {
  margin: 2rem 0;
  text-align: center;
}

.print-preview img {
  max-width: 100%;
  max-height: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
/* ===== SURGERY SIMULATOR DESIGN ===== */

.simulator-body {
   margin: 0;
   font-family: Arial, sans-serif;
   background-image: url("Images/operation-room.png");
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   min-height: 100vh;
}


.simulator-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 40, 0.6);
    z-index: -1;
}

.simulator-wrapper {
    text-align: center;
    padding-top: 40px;
}

.sim-title {
    font-size: 48px;
    color: white;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0px 5px 15px rgba(0,0,0,0.7);
}

.simulator-container {
    width: 950px;
    height: 550px;
    margin: 0 auto;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    padding: 30px;
    gap: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* LEFT SIDE */
.menu-panel {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    padding: 12px;
    border-radius: 30px;
    background: linear-gradient(to bottom, #e5edf3, #cdd8e2);
    text-decoration: none;
    color: #1f2a35;
    font-weight: bold;
    text-align: center;
    transition: 0.2s ease;
}

.menu-btn:hover {
    transform: translateX(6px);
    background: linear-gradient(to bottom, #ffffff, #dbe5ee);
}

.logout {
    background: linear-gradient(to bottom, #d94b4b, #b52a2a);
    color: white;
}

.logout:hover {
    background: linear-gradient(to bottom, #ff5a5a, #c33232);
}

/* RIGHT SIDE */
.display-panel {
    flex: 1;
    color: white;
    text-align: left;
}

.display-box {
    width: 100%;
    height: 370px;
    background: rgba(0,0,0,0.35);
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    margin-top: 20px;
}
.display-box {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.4);
}


.display-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
