body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 20px;
}

h1 {
  color: #333;
  text-align: center;
}

.duct-lines-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.duct-line-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
}

.duct-line-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.duct-line-card-link:hover .duct-line-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.duct-line-image {
  text-align: center;
  margin-bottom: 5px;
}

.duct-line-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.duct-line-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
  background-color: #ff8c00;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-success:hover {
  background-color: #e67e00;
}

.btn-success {
  background-color: #023047;
  display: block;
  width: 200px;
  margin: 20px auto;
  text-align: center;
}

.btn-success:hover {
    background-color: #001d2b;
    display: block;
    width: 200px;
    margin: 20px auto;
    text-align: center;
  }

.duct-line-pdf {
  margin-top: 10px;
  text-align: center;
}

.duct-line-pdf .btn {
  display: inline-block;
}

.download-btn {
  display: inline-block;
  width: 80%;
  margin: 10px auto;
  padding: 8px 16px;
  background-color: #ff8c00;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.download-btn:hover {
  background-color: #e67e00;
}

.duct-line-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f0f0f0;
}

.duct-line-form h1 {
  text-align: center;
  color: #333;
}

.duct-line-form .full-size {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.duct-line-form .image-container {
  text-align: center;
  margin-bottom: 20px;
}

.duct-line-form .image-container img {
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.duct-line-form .image-container .download-btn {
  margin-top: 10px;
}

.duct-line-form .duct-line-actions {
  margin-top: 20px;
  text-align: center;
}

.duct-line-form .btn {
  margin: 0 5px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.field input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.upload-box {
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
}

.upload-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.btn-save {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #ff8c00;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.btn-save:hover {
  background-color: #e67e00;
}

.upload-text {
  font-size: 14px;
  color: #666;
  word-break: break-all;
}

.dimensions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dimensions > div {
  flex: 1;
}

.dimensions label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.dimensions input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.duct-form h2 {
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}

.duct-line-card p {
  margin: 5px 0;
  font-size: 14px;
}

.duct-line-card h2 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #023047;
}

.duct-line-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  height: auto;
}

.duct-details {
  margin-bottom: 20px;
}

.duct-details p {
  margin: 5px 0;
  font-size: 16px;
}

.duct-line-form .duct-line-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.duct-line-form .btn {
  flex: 1;
  margin: 0 5px;
}

.duct-line-form h2 {
  margin-top: 30px;
  margin-bottom: 20px;
  color: #023047;
}

.duct-line-form .duct-lines-container {
  margin-bottom: 30px;
}

.duct-line-form .duct-line-card h3 {
  color: #023047;
  margin-bottom: 10px;
}

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

.duct-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.duct-card h3 {
  margin-top: 0;
  color: #023047;
}

.duct-details {
  margin-bottom: 10px;
}

.duct-details p {
  margin: 5px 0;
  font-size: 14px;
}

.duct-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.duct-actions .btn {
  flex: 1;
  margin: 0 5px;
  font-size: 12px;
  padding: 6px 10px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
}

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

header {
  background-color: transparent;
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 120px; /* Increased logo size */
}

nav {
  display: flex;
  gap: 20px;
}

.nav-button {
  text-decoration: none;
  color: #023047;
  font-weight: bold;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.nav-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

main {
  padding-top: 10px;
}

.fixed-add-duct {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 14px 22px;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
