.ir-wrapper {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border:none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

.ir-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 15px;
  background: none;
  border:dashed;
  border-radius:10px;
  
  justify-content: space-between;
}

.ir-panel {
  flex: 1 1 350px;
  max-width: 400px;
}

.ir-settings label {
  display: block;
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
}

.ir-settings, .ir-settings select  input[type="file"] {
  padding: 10px;
  margin-top: 20px; /* Increase margin from the top */
  cursor: pointer;
  font-weight: 500;
  color: #333;
}


.ir-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.ir-actions button,
#ir-download {
  flex: 1 1 150px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}

#ir-resize-btn {
  background-color: #28a745;
  color: #fff;
}

#ir-download {
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  display: none;
}

#ir-resize-btn:hover {
  background-color: #218838;
}

#ir-download:hover {
  background-color: #0056b3;
}

.ir-preview {
  flex: 1 1 400px;
  text-align: center;
  border: 1px dashed #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background-color: #fff;
}

.ir-preview h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #555;
}

canvas {
  max-width: 100%;
  max-height:350px;
  border-radius: 5px;
  background-color: #fff;
}
#ir-reset-btn {
  background-color: #dc3545;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
  height:auto;
}

#ir-reset-btn:hover {
  background-color: #c82333;
}

/* Complete button reset for mobile */
@media (max-width: 768px) {
  .ir-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin:15px;
    margin-right:5px;
  }
  
  .ir-settings, .ir-settings select  input[type="file"] {
      width:90%;
  padding: 10px;
  }

  .ir-actions button,
  #ir-download {
    /* Reset everything */
    all: unset;
    /* New styling */
    width: 90%;
    height: 50px;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 38px;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    /* Visual styling */
    color: white;
    background-color: #28a745;
    transition: background-color 0.2s ease;

  }

  #ir-reset-btn {
    background-color: #dc3545;
    height:50px;
    font-weight:500;
    text-align: center;
  }


  #ir-download {
    background-color: #007bff;
    display: none;
  }
}

@media (max-width: 480px) {
  .ir-actions button,
  #ir-download {
    height: 50px;
    font-size: 18px;
    line-height: 30px;
  }
}

#ir-reset-btn {
    background-color: #dc3545;
    height:50px;
    font-weight:500;
    
    
  }
 .ir-settings, .ir-settings select  input[type="file"] {
     width:90%;
  padding: 10px;
  }