/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* new login selector css */

.login-selector {
    padding-top: 20px;
}
.login-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #444;
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 180px;
  padding: 20px;
  background-color: #fff;
  border: 2px solid palevioletred; /* Tailwind orange-500 equivalent */
  border-radius: 10px;
  text-decoration: none;
  color: palevioletred;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

.login-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.icon-style {
  margin-bottom: 15px;
}

.role-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Add or modify styles for the h2 to position it correctly */
.login-selector h1 {
    margin-bottom: 60px; /* Adjust as needed for spacing between the welcome text and the login type heading */
}

/* This will center the login cards horizontally below the headings */
.d-flex.justify-content-center {
    width: 100%; /* Ensure it takes full width to center its content */
}

/* body */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    transition: all 0.3s ease;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
}

/* Sidebar */

.sidebar {
    background-color: #f5f5f5;
    color: #2c3e50;
    width: 20%;
    min-width: 200px;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    position: relative;
    overflow: auto;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar ul h2{
    margin-top: 50px;
    padding: 10px 0px;
    color: palevioletred;
}

.sidebar ul{
    list-style-type: none;
    padding-left: 0;
}

.sidebar ul h2 a{
    color: palevioletred;
    text-decoration: none;
    display: block;
    padding: 10px 6px;
}
.sidebar h2 a:hover{
    background-color: palevioletred;
    color: white;
    border-radius: 5px;
}
.sidebar ul li a{
    color: palevioletred;
    text-decoration: none;
    display: block;
    padding: 10px 6px;
    font-size: 20px;
}

.sidebar ul li a:hover{
    background-color: palevioletred;
    color: white;
    border-radius: 5px;
}

/* Main-Content */
.main-content {
    flex: 1;
    padding: 40px;
    margin-left: 30px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}


.toggle-button {
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 1000;
    background-color: palevioletred;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Move toggle button to right when sidebar is visible */
.sidebar:not(.collapsed) ~ .toggle-button {
    left: 20px; 
}

/* Full width content when sidebar is collapsed */
.sidebar.collapsed + .main-content {
    flex: 1 0 100%;
    
}

/* User info page */

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 20px;
    overflow-x: auto;
}

.card-header h2 {
    margin: 0;
    color: palevioletred;
}

.table-container {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; 
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.styled-table thead {
    background-color: palevioletred;
    color: white;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* for the questions modal in user-info page table */
.answer-text {
    display: block;
    margin-left: 0;  /* indent answers a bit */
    white-space: pre-wrap; /* preserves whitespace and line breaks if any */
    color: #333;
    font-style: normal;
}


/* for the image modal in user-info page table*/
  .category-section {
    margin-bottom: 20px;
  }

  .category-section h3 {
    margin-bottom: 10px;
    color: #333;
  }

  .image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* for the user profilee page  */
  .question-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 20px;
}

.question-list li {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.question-label {
    font-weight: bold;
    color: #333;
    display: block; /* Force next line for answer */
    margin-bottom: 5px;
}

.question-answer {
    color: #555;
    margin-left: 10px;
}



/* Images section styling for the User Profile page */
.profile-image-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.profile-image-row img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


