.shadow-generator-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .shadow-generator-container {
        grid-template-columns: 1fr;
    }
}

/* Controls Panel */
.controls-panel {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.controls-panel h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #2c3e50;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.control-group {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 2px;
}

/* Color Settings */
.color-settings {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.color-input {
    text-align: center;
}

.color-input label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: #777;
}

.color-input input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 0;
}
.color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input input[type="color"]::-webkit-color-swatch { border: 1px solid #ddd; border-radius: 8px; }

/* Checkbox */
.inset-option {
    margin-top: 20px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: #333;
}
.checkbox-container input {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #3498db;
}

/* Preview Panel */
.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-stage {
    flex: 1;
    background-color: #f0f2f5; /* Default bg */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 1px solid #ddd;
    background-image: radial-gradient(#e1e4e8 1px, transparent 1px);
    background-size: 20px 20px;
}

.preview-box {
    width: 200px;
    height: 200px;
    background-color: #fff; /* Default box color */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
    transition: all 0.1s; /* Fast transition for smooth slider dragging */
}

/* Code Output */
.code-output {
    background: #282c34;
    border-radius: 10px;
    overflow: hidden;
}

.code-header {
    background: #21252b;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #abb2bf;
    font-size: 0.9rem;
}

.btn-copy {
    background: transparent;
    border: 1px solid #abb2bf;
    color: #abb2bf;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #abb2bf;
    color: #21252b;
}

.code-output pre {
    margin: 0;
    padding: 20px;
    color: #61dafb;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Presets */
.presets-section {
    margin-top: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.presets-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.preset-card {
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.preset-card:hover {
    transform: translateY(-5px);
}

.preset-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* Reusing back button */
.btn-back-tools {
    margin-bottom: 30px;
    background-color: #f1f3f5;
    color: #495057;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}
.btn-back-tools:hover {
    background-color: #e9ecef;
}

/* Reusing CTA */
.cta-security {
  margin: 50px 0 0 0;
  background: linear-gradient(90deg, #23c6fa 10%, #23315a 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(35,49,90,0.09);
}

.cta-security-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 38px 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta-security-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-btn.btn-accent {
  background: linear-gradient(90deg, #fd746c, #ff9068);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 30px;
  box-shadow: 0 4px 16px rgba(253,116,108,0.12);
  text-decoration: none;
  display: inline-block;
}
