.adjust-component {
    background: #0f172a;
    border-radius: 16px;
    padding: 16px;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.adjust-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
}

.adjust-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f1f5f9;
}

.adjust-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adjust-icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.adjust-icon-btn:hover {
    color: #f1f5f9;
    background: #1e293b;
}

.adjust-apply-btn {
    background: #ec4899;
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.adjust-apply-btn:hover {
    background: #db2777;
    transform: scale(1.05);
}

.adjust-apply-btn.hidden {
    display: none;
}

.adjust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.adjust-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
}

/* Helper to hide specific panels inside sidebar when adjusting */
body.is-adjusting .upload-panel,
body.is-adjusting .layers-panel {
    display: none !important;
}

/* Adjust panel specific layout fixes if needed */
body.is-adjusting #adjustPanel {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 768px) {
    body.is-adjusting .editor-layout {
        display: flex;
        flex-direction: column;
    }
}

.adjust-tabs::-webkit-scrollbar {
    height: 4px;
}

.adjust-tabs::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

.adjust-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.adjust-tab i {
    font-size: 14px;
}

.adjust-tab:hover {
    color: #f1f5f9;
    background: #1e293b;
}

.adjust-tab.active {
    color: #ec4899;
    background: #ec489920;
}

.reset-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.reset-btn:hover {
    color: #f1f5f9;
    background: #1e293b;
}

.adjust-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.adjust-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-group {
    margin-bottom: 16px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 700;
}

.slider-info .value {
    color: #ec4899;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #f1f5f9;
    border: 2px solid #ec4899;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.gradient-slider {
    background: #1e293b;
}

.temp-slider {
    background: linear-gradient(to right, #64b5f6, #ffd54f) !important;
}

.tint-slider {
    background: linear-gradient(to right, #81c784, #ba68c8) !important;
}

/* Switch styling */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #ec4899;
}

input:focus + .slider {
  box-shadow: 0 0 1px #ec4899;
}

input:checked + .slider:before {
  -webkit-transform: translateX(14px);
  -ms-transform: translateX(14px);
  transform: translateX(14px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
