/* Global Styles */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #f4f7fc, #ffffff);
  color: #333;
   width: 100%;
  overflow-x: hidden; /* Prevents scrolling */
  box-sizing: border-box; /* Ensures proper sizing */
}

header {
  text-align: center;
  padding: 20px;
  background: #4CAF50;
  color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

header p {
  margin: 10px 0 0;
  font-size: 1.2em;
}

main {
  padding: 20px;
  max-width: 100%;
  margin: auto;
}

/* Input Section */
.inputs-section, .results-section, .drawing-section, .save-section, .download-section {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

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

label {
  font-weight: bold;
  margin-bottom: 5px;
}

input {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  color: white;
  background: #4CAF50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.btn:hover {
  background: #45a049;
}

.calculate-btn {
  margin-top: 20px;
  width: 100%;
}

.save-btn {
  background: #FF9800;
}

.save-btn:hover {
  background: #e68900;
}

.pdf-btn {
  background: #F44336;
}

.pdf-btn:hover {
  background: #d32f2f;
}

/* Drawing Section */
.cupboard-drawing {
  position: relative;
  background: #f9f9f9;
  margin: 30px auto;
  max-height: 500px;
  max-width: 300px;
  padding: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: #333;
  color: white;
}

/* Add minor updates to styles */
#sectionInputs {
  margin-top: 20px;
}
h3 {
  margin-top: 10px;
}

//////////////////pdf//////////////////////

 h1 {
      text-align: center;
      margin-bottom: 20px;
      color: #2c3e50;
    }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      background: #ffffff;
      border: 1px solid #ddd;
      border-radius: 5px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
    .form-group {
      display: flex;
      flex-direction: column;
    }
    .form-group label {
      font-weight: bold;
      margin-bottom: 5px;
      color: #34495e;
    }
    .form-group input,
    .form-group select {
      padding: 8px;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .section-container {
      border: 2px dashed #7f8c8d;
      background-color: #ecf0f1;
      padding: 10px;
      margin-bottom: 20px;
      border-radius: 5px;
      text-align: center;
      color: #2c3e50;
      font-weight: bold;
      border:2px solid blue;
    }
    button {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 10px 15px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s;
    }
    button:hover {
      background-color: #2980b9;
    }
    .results {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 5px;
      padding: 15px;
      box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

     /* Add hover effect for visual feedback */
  input:focus, select:focus {
    border-color: #007BFF;        /* Highlight border on focus */
    outline: none;                /* Remove default outline */
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
  }

  /* Ensure the page break class forces a new page */
#calculatedSection {
  margin-bottom: 20px;
}

#drawing {
  page-break-before: always;  /* This forces the drawing to a new page */
  break-before: page;
  margin-top: 20px;
}

#colorSettings {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.color-option {
  margin-bottom: 10px;
}

#cupboardCanvas {

}

.hamburger-menu {
  position: fixed;
  top: 2px;
  left: 0;
  width: 100%;
  padding: 10px;
  z-index: 1000;
  display:flex;
}

.hamburger {
  font-size: 30px;
  color: green;
  cursor: pointer;

width:3%;
}

.menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: 15%;
  background-color: #333;

}

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

.menu ul li {
  padding: 15px;
  text-align: center;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.menu ul li a:hover {
  color:green;
  font-size:30px;
  transition:2s ease;
}

#content {
  padding: 50px;
}



#main{
width:40%;
border:2px solid red;

}


#user-profile {

  align-items: center;

left-margin:20px;
width:100%;
display:flex;
flex-direction:row;
padding-left:20%;


}

.profile-pic {
  border-radius: 50%;  /* Makes it a circle */
  background-color: lightgray;
  display:center;

}

.profile-name {
  margin-left: 10px;
  font-size: 20px;
  font-weight: bold;

  padding: 0.8%;
}
/* Style the round user avatar */
    .profile-avatar {

    display:center;
      width: 50px;
      height: 50px;
      border-radius: 50%;  /* Makes the avatar round */
      background-color: #007BFF; /* Default background color */
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
right:50px;
      border: 2px solid #fff; /* Optional: Add a border around the circle */
    }

    .profile-avatar img {
      width: 100%;  /* Ensure the image fits inside the circle */
      height: 100%;
      object-fit: cover; /* Make sure the image covers the area */
   }

    /* Optional: Add some styling to the name */
    .profile-name {
      font-size: 18px;
      margin-left: 10px;
      font-weight: bold;
    }

    .profile-name.no-login {
      color: #ff0000; /* Red text color for "Not Logged In" */
    }


/* Adjust layout for smaller screens */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px; /* Reduce font size for readability */
  }

  header h1 {
    font-size: 2em;
  }

  .form-grid {
    grid-template-columns: 1fr; /* Stack form elements */
  }

  .inputs-section, .results-section, .drawing-section, .save-section, .download-section {
    padding: 15px;
  }

  .btn {
    width: 100%; /* Buttons take full width */
    font-size: 0.9em;
  }

  .cupboard-drawing {
    max-width: 100%;
  }

  .hamburger {
    width: 10%; /* Make menu button bigger for touch */
  }

  .menu {
    width: 20%; /* Increase menu width for better usability */
  }

  #user-profile {
    flex-direction: column; /* Stack profile pic and name */
    text-align: center;
    padding-left: 0;
  }

  .profile-avatar {
    width: 40px;
    height: 40px;
  }

  .profile-name {
    font-size: 16px;
    margin-left: 0;
  }
}

@media screen and (max-width: 480px) {
  header h1 {
    font-size: 1.8em;
  }

  .hamburger {
    font-size: 24px;
    width: 15%;
  }

  .menu {
    width: 45%;
    text-align: center;
  }

  .menu ul li a {
    font-size: 16px;
  }

  .profile-avatar {
    width: 35px;
    height: 35px;
  }

  .profile-name {
    font-size: 14px;
  }

  .btn {
    padding: 8px;
    font-size: 0.8em;
  }

  /* Responsive Container */
.container {
  display: flex;
  flex-wrap: wrap;  /* Allows wrapping on smaller screens */
  justify-content: center; /* Center align elements */
  align-items: center;
  margin: auto;
  gap: 20px; /* Adds spacing between elements */
}


/* Adjustment Box */
#adjustment-values {
  flex: 1;
  max-width: 100%; /* Allow it to scale */
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  margin: 10px 0; /* Avoids overlap */
  display: none; /* Initially hidden */
}

/* Make images responsive */
.image-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  border: 2px solid black;
}

.image-preview img {
  margin: 10px;
  width: 100%; /* Ensures responsiveness */
  max-width: 200px; /* Prevents being too large */
  height: auto;
}

/* Responsive Settings Button */
#settings-btn {
  width: 100%; /* Takes full width on mobile */
  max-width: 200px;
  text-align: center;
  margin: 10px auto; /* Centers the button */
}

}

/* Mobile-Friendly Adjustments */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack items */
    align-items: center;
  }

  #adjustment-values {
    max-width: 100%;
    text-align: center;
  }
main {
  padding: 20px;
  max-width: 85%;
  margin: auto;
}

  #settings-btn {
    width: 100%; /* Full width for better touch */
  }

  #cupboardCanvas {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: auto;
}

}

