body {
  background: #f4f6f8;
}

.qir-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  width: 100%;
}

.qir-box {
  text-align: center;
}

.qir-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.qir-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.qir-drop {
  border: 2px dashed #ccc;
  padding: 40px;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.qir-drop:hover {
  border-color: #4CAF50;
}

.qir-drop p {
  font-size: 18px;
  margin-bottom: 10px;
}

.qir-drop span {
  display: block;
  margin: 10px 0;
  color: #999;
}

#uploadBtn {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}


/*edit page css*/

.qir-editor {
  display: flex;
  height: auto;
}

.qir-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 20px;
}

.qir-menu {
    margin-bottom: 20px;
    border: solid 1px #d1d5db;
    border-radius: 6px;
}

.qir-tab {
  padding: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 6px;
}

.qir-tab:hover {
  background: #f0f0f0;
}

.active-tool {
  background: #4CAF50;
  color: #fff;
}

.qir-tool-panel {
  margin-top: 20px;
}

.qir-tool-panel input,
.qir-tool-panel select {
  width: auto;
  margin: 10px 0;
  padding: 8px;
}

.qir-tool-panel button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  background: #4CAF50;
  color: #fff;
  cursor: pointer;
}

.qir-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eee;
  position: relative;
}

.qir-preview img {
  max-width: 90%;
  max-height: 80vh;
}

.qir-sidebar {
  display: flex;
  flex-direction: column;
  height: auto;
}

.qir-tool-panel {
  flex: 1;
  overflow-y: auto;
}

.qir-tool-panel button {
  display: block;
  width: 100%;
  margin-top: 12px;
  transition: all 0.2s ease;
}

/* FORCE VISIBILITY */
#compressBtn,
#downloadBtn,
#newImageBtn {
  display: block !important;
}

label, legend{
    display: block;
}

/* Disabled button style */
.qir-tool-panel button:disabled {
  background: #dcdcdc !important; /* light grey */
  color: #888;
  cursor: not-allowed !important;
  opacity: 0.8;
}

/* Remove hover effect when disabled */
.qir-tool-panel button:disabled:hover {
  background: #dcdcdc !important;
}

/* Active tab highlight */
.qir-tab.active {
  background: #4CAF50;
  color: #fff;
  font-weight: 600;
}

#cropBox {
  position: absolute;
  border: 2px dashed #4CAF50;
  cursor: move;
  pointer-events: all; /* CHANGE THIS */
}

.handle {
  width: 10px;
  height: 10px;
  background: #4CAF50;
  position: absolute;
  border-radius: 50%;
}

.tl { top: -5px; left: -5px; cursor: nwse-resize; }
.tr { top: -5px; right: -5px; cursor: nesw-resize; }
.bl { bottom: -5px; left: -5px; cursor: nesw-resize; }
.br { bottom: -5px; right: -5px; cursor: nwse-resize; }
