/*
Theme Name: DHS
Author: Gandharv Kuthari
Description: New Theme for DHS 2025 Oct.
Version: 1.0
Text Domain: dhs.com
*/

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy_regular.ttf') format('truetype');
    font-weight: 400;;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy_bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy_semi_bold.ttf') format('truetype');
    font-weight: 550;
}


body {
    font-family: 'Gilroy', sans-serif;
    background-color: #efefef;
    color: #222;
    font-size: 20px;
    line-height: 1.6;
    padding: 0px;
    margin: 0px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
  align-items: center;
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.site-content {
    flex: 1; /* Pushes footer to the bottom if content is short */
}

/* Base Header Styles */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

h1 {
    font-weight:700;
}

h3 {
    font-weight:500;
}

.logo img {
  max-height: 50px;
}

.main-nav .menu-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav .menu-links li {
  display: inline;
}

.main-nav .menu-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav .menu-links a:hover {
  color: #0073aa;
}

.main-nav a[aria-current="page"],
.menu-links a[aria-current="page"] {
    font-weight: bold;
    border-bottom:3px solid #A5CC46;
}

/* Responsive Styles */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}


.dhs-login-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    line-height:2.5;
    max-width: 50%;
    margin: 50px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.dhs-login-form input[type="email"],
.dhs-login-form input[type="password"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #000;
    font-size:20px;
}
.dhs-login-form input[type="submit"] {
    background-color: #A5CC46;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 30%;
    font-size:20px;
}
.dhs-login-form .login-error {
    color: red;
    margin-top: 10px;
}

.icon {
  vertical-align: middle;
  height: 1em;
  width: auto;
}


.user-profile-menu {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px;
    min-width: 150px;
    z-index: 1000;
}

.profile-dropdown a {
    display: block;
    padding: 8px;
    color: #333;
    text-decoration: none;
}

.profile-dropdown a:hover {
    background-color: #f2f2f2;
}


.profile-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    line-height:2.5;
    max-width: 50%;
    margin: 50px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="date"],
.profile-form input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.profile-form button[type="submit"] {
    background-color: #A5CC46;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 30%;
}

.form-row.two-cols {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row.two-cols .col {
    flex: 1;
}

.full-width {
    margin-bottom: 15px;
}

.choose-profile-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.choose-profile-btn:hover {
    background-color: #005177;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%; 
}

.error {
    color: red;
    margin-top: 10px;
}


.success {
    color: green;
}

.col-container {
      display: flex;
      flex-direction: row; 
      flex-wrap: wrap;
    }

.col-30 {
      flex: 0 0 30%;
      max-width: 30%;
    }

    .col-70 {
      flex: 0 0 70%;
      max-width: 70%;
      background:white;
      border-radius:12px;
      font-size:16px;
    }
    
.image-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding:10px;
    }
    
  .image-grid a {
      display: block;
      overflow: hidden;
      border-radius: 5px;
      color:white;
      text-decoration:none;
    }

    .image-grid img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.3s ease;
      border-radius:12px;
    }

    .image-grid a:hover img {
      transform: scale(1.05);
    }    
    
    
/* Sidebar Menu */
    .sidebar-menu {
      list-style: none;
      padding: 0;
      margin: 10px 0;
    }

    .sidebar-menu li {
      margin-bottom: 5px;
    }

    .sidebar-menu a {
      display: block; 
      width:60%;
  padding: 10px 15px;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  transition: background-color 0.2s ease;
    }

    .sidebar-menu a:hover {
      background-color: #ccc;
    }

    .sidebar-menu a.active {
      background-color: #A5CC46;
      color: #222;
      border-radius: 12px;
    }    
    
    
.virtual-rounded-box {
    min-height:150px;    
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 20px;
      font-size: 20px;
    }  
    
.rounded-btn {
    display: inline-block;
      background-color: #A5CC46;   
      color: #222;                
      padding: 12px 24px;          
      border: none;                
      border-radius: 25px;         
      font-size: 18px;             
      cursor: pointer;             
      transition: background 0.3s; 
      text-decoration: none; 
      width:230px;
      margin: 20px 10px 0px 20px;
      text-align:center;
    }

  

.section {
      display: none;
    }
    .section.active {
      display: block;
    }
    
     .flag-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  transition: transform 0.2s;
}

.flag-btn:hover {
  transform: scale(1.1);
}

.flag-btn {
  background-image: url('assets/images/flag-gray.png');
}

.flag-btn.green {
  background-image: url('assets/images/flag-green.png');
}
    
   
.option {
  padding: 12px;
  margin: 8px 0;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.option:hover {
  border-color: #0073aa;
  background: #f1f9ff;
}
.option.selected {
  border-color: #0073aa;
  background: #4441EA;
  color:#ffffff;
  font-weight: bold;
}


#quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;  
  margin: 15px 0;
}


#jump-wrapper {
  margin: 10px 0;
}

#timer-wrapper {
  margin: 10px 0;
}



#timer {
  display: inline-block;
  min-width: 80px;         
}


footer p {
    text-align: center;
}


.review-panel {
  margin-top: 20px;
  padding: 15px;

}

.review-panel h3 {
  margin: 10px 0;
  font-size: 18px;
}

.review-list button {
  width: 40px;
  height: 40px;
  border: 2px solid #555;
  background: #fff;
  border-radius: 50%;   /* makes it circular */
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 36px;   /* vertically centers number */
  transition: background 0.2s, transform 0.2s;
  margin:5px;
}



.review-list button:hover {
  background: #eee;
  transform: scale(1.1);
}



/* Drawer */
.drawer {
  position: fixed;
  top: 10%;
  height: 80%;
  right: -68%; 
  width: 70%;
  max-width: 90%; 
  background: #dbe5a5;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.4s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
}
.drawer.open {
  right: 0; /* fully open */
}


/* Drawer Content */
.drawer-content {
  padding: 40px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Radiograph images */
.radio-img {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.radio-img:hover {
  transform: scale(1.02);
}

/* Vertical Button (attached to drawer) */
.vertical-btn {
  position: absolute;
  top: 50%;
  left: -300px; /* stick outside drawer edge */
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right top;
  background: #adcb54;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px 6px 0 0;
  transition: background 0.3s ease;
}


/* Chevron */
#chevron {
    writing-mode: horizontal-tb; /* reset rotation */
  transform: none !important; 
}


.accordion-btn {
  width: 100%;
  padding: 10px;
  font-weight: 700;
  font-size:20px;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 4px;
}

.accordion-btn:hover,
.accordion-btn.active {
  background: #adcb54;
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #f1f1f1;
  border-radius: 4px;
  padding: 0 10px;
  margin-bottom: 8px;
}
.accordion-content.open {
  padding: 10px;
  max-height: 400px; 
  overflow: scroll;
}


.patient-info {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.info-row {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #ccc;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  flex: 0 0 30%;
  background-color: #d9e6f7;   /* light blue */
  padding: 10px;
  font-weight: bold;
  border-right: 1px solid #ccc;
}

.info-value {
  flex: 1;
  background-color: #fff;
  padding: 10px;
}

.info-value p {
  margin: 6px 0;
}

/* Mobile view */
@media (max-width: 600px) {
  .info-row {
    flex-direction: column;
  }
  .info-label {
    border-right: none;
    border-bottom: 1px solid #ccc;
    flex: unset;
  }
}



@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav .menu-links {
    flex-direction: column;
    gap: 0;
  }

  .main-nav .menu-links li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }

  .main-nav .menu-links a {
    display: block;
  }
  
  .custom-login-form {
      max-width:90%;
  }
  
  .form-row.two-cols {
        flex-direction: column;
    }
    
    .col-30,
      .col-70 {
        flex: 0 0 100%;
        max-width: 100%;
      }

      .image-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
      }
      
      #quiz-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  #jump-wrapper, #timer-wrapper {
    width: 100%;
  }
}

@media (max-width: 1024px) {
      .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
      }
    }