/**
 * ConvMaster - CSS Box-Shadow Generator Styles
 * Includes: Classic, Neumorphism, Glassmorphism, Text Shadow
 * 
 * @package    ConvMaster
 * @version    2.0.0
 */

/* =====================================================
   TOOL PAGE LAYOUT
   ===================================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}

.tool-header__icon .icon--box-shadow {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.2));
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   BOX-SHADOW GENERATOR WIDGET
   ===================================================== */
.box-shadow-generator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* =====================================================
   TAB NAVIGATION
   ===================================================== */
.box-shadow-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.box-shadow-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.box-shadow-tab svg {
    width: 18px;
    height: 18px;
}

.box-shadow-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.box-shadow-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-card);
}

@media (max-width: 600px) {
    .box-shadow-tab {
        flex: 1 1 45%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .box-shadow-tab svg {
        width: 16px;
        height: 16px;
    }
}

/* =====================================================
   TAB PANELS
   ===================================================== */
.box-shadow-panel {
    display: none;
}

.box-shadow-panel--active {
    display: block;
}

/* =====================================================
   WORKSPACE LAYOUT
   ===================================================== */
.box-shadow-generator__workspace {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (max-width: 900px) {
    .box-shadow-generator__workspace {
        grid-template-columns: 1fr;
    }
    
    .box-shadow-generator__preview-column {
        order: -1;
    }
}

.box-shadow-generator__config {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.box-shadow-generator__section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.box-shadow-generator__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.box-shadow-generator__step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.box-shadow-generator__section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

/* =====================================================
   SHADOW CONTROLS
   ===================================================== */
.shadow-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shadow-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shadow-control > label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.shadow-control__input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shadow-form__input {
    width: 70px;
    padding: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    /* Remove spinners */
    -moz-appearance: textfield;
}

.shadow-form__input::-webkit-outer-spin-button,
.shadow-form__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shadow-form__input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.shadow-form__input:focus {
    outline: none;
    border-color: var(--primary);
}

.shadow-form__input--hex {
    width: 90px;
    text-transform: uppercase;
}

.shadow-form__slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-secondary);
    border-radius: 3px;
    cursor: pointer;
}

.shadow-form__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.shadow-form__slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.shadow-form__slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.shadow-control--row {
    flex-direction: row;
    align-items: center;
}

.shadow-control__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shadow-control__checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.shadow-control__checkbox label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.shadow-control__color-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shadow-form__color {
    width: 50px;
    height: 36px;
    padding: 2px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
}

.shadow-form__color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.shadow-form__color::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

/* Add Shadow Button */
.btn--add-shadow {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    margin-top: 1rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
}

.btn--add-shadow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* =====================================================
   SHADOW LAYERS
   ===================================================== */
.shadow-layers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.shadow-layer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shadow-layer:hover {
    border-color: var(--primary);
}

.shadow-layer--active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.shadow-layer__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.shadow-layer__color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.shadow-layer__text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-layer__remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.shadow-layer__remove:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.shadow-layer__remove svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   PREVIEW COLORS
   ===================================================== */
.preview-colors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.preview-color {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-color > label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.preview-color__input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================
   SHADOW PREVIEW
   ===================================================== */
.shadow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.shadow-preview__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
    background: #1C6EA4;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* =====================================================
   EFFECT GALLERY
   ===================================================== */
.effect-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

@media (max-width: 500px) {
    .effect-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.effect-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.effect-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.effect-card__preview {
    width: 60%;
    height: 60%;
    background: #1C6EA4;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}

/* Neumorphism Gallery */
.effect-gallery--neu {
    grid-template-columns: repeat(5, 1fr);
}

.effect-card--neu {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #e0e5ec;
}

.effect-card__preview--neu {
    width: 40px;
    height: 40px;
    background: #e0e5ec;
}

.effect-card__name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Glassmorphism Gallery */
.effect-gallery--glass {
    grid-template-columns: repeat(5, 1fr);
}

.effect-card--glass {
    position: relative;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    overflow: hidden;
}

.effect-card--glass .effect-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.effect-card__preview--glass {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
}

.effect-card--glass .effect-card__name {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .effect-gallery--neu,
    .effect-gallery--glass {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   NEUMORPHISM STYLES
   ===================================================== */
.neu-shape-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.neu-shape-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e5ec;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.neu-shape-btn:hover {
    border-color: var(--primary);
}

.neu-shape-btn--active {
    border-color: var(--primary);
}

.neu-shape-preview {
    width: 30px;
    height: 30px;
    background: #e0e5ec;
    border-radius: 8px;
}

.neu-shape-preview--flat {
    box-shadow: 8px 8px 16px #bec3c9, -8px -8px 16px #ffffff;
}

.neu-shape-preview--concave {
    box-shadow: inset 8px 8px 16px #bec3c9, inset -8px -8px 16px #ffffff;
}

.neu-shape-preview--convex {
    background: linear-gradient(145deg, #f0f5fc, #caced5);
    box-shadow: 8px 8px 16px #bec3c9, -8px -8px 16px #ffffff;
}

.neu-shape-preview--pressed {
    box-shadow: inset 4px 4px 8px #bec3c9, inset -4px -4px 8px #ffffff;
}

.light-position-selector {
    display: flex;
    justify-content: center;
}

.light-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.light-pos-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.light-pos-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.light-pos-btn--active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.neu-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
    background: #e0e5ec;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.neu-preview__box {
    width: 200px;
    height: 200px;
    background: #e0e5ec;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* =====================================================
   GLASSMORPHISM STYLES
   ===================================================== */
.glass-bg-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.glass-bg-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.glass-bg-btn:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.glass-bg-btn--active {
    border-color: var(--primary);
}

.glass-bg-preview {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-md) - 2px);
}

.glass-bg-preview--image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 1.25rem;
}

.glass-preview {
    position: relative;
    min-height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.glass-preview__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: background 0.3s ease;
}

.glass-preview__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 280px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-preview__content {
    text-align: center;
    color: white;
}

.glass-preview__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.glass-preview__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.glass-preview__text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* =====================================================
   TEXT SHADOW STYLES
   ===================================================== */
.text-shadow-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.text-shadow-preview__text {
    font-size: 48px;
    font-weight: 700;
    color: #333333;
    outline: none;
    transition: all 0.3s ease;
    cursor: text;
    min-width: 100px;
    text-align: center;
}

.text-shadow-preview__text:focus {
    outline: 2px dashed var(--primary);
    outline-offset: 8px;
}

/* Text Effect Gallery */
.text-effect-card {
    aspect-ratio: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.text-effect-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =====================================================
   CSS OUTPUT
   ===================================================== */
.css-output__options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.css-output__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.css-output__toggle input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.css-output {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.css-output__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.css-output__code {
    margin: 0;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: auto;
    max-height: 180px;
}

.css-output__code code {
    display: block;
    white-space: pre;
}

/* =====================================================
   ACTION BUTTONS
   ===================================================== */
.box-shadow-generator__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn--secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: var(--bg-secondary);
}

.btn--outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn--outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.btn--icon {
    padding: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
}

.btn--icon:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn svg {
    flex-shrink: 0;
}

/* Privacy Info */
.shadow-preview__info {
    text-align: center;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.shadow-preview__info p {
    font-size: 0.8rem;
    color: var(--success);
    margin: 0;
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.tool-content {
    margin-top: 3rem;
}

.tool-section {
    margin-bottom: 2.5rem;
}

.tool-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Syntax Card */
.syntax-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.syntax-card code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.faq-item summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.5rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   HIDDEN ELEMENTS
   ===================================================== */
[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
    .box-shadow-generator__workspace {
        padding: 1rem;
    }
    
    .preview-colors {
        grid-template-columns: 1fr;
    }
    
    .effect-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .shadow-control__input-row {
        flex-wrap: wrap;
    }
    
    .shadow-form__slider {
        width: 100%;
    }
}

/* =====================================================
   LIGHT THEME ADJUSTMENTS
   ===================================================== */
[data-theme="light"] .shadow-form__input,
[data-theme="light"] .shadow-form__color {
    background: var(--bg-primary);
}

[data-theme="light"] .box-shadow-generator__section {
    background: var(--bg-secondary);
}

[data-theme="light"] .shadow-preview {
    background: #f8f9fa;
}

[data-theme="light"] .text-shadow-preview {
    background: #f8f9fa;
}

[data-theme="light"] .css-output__code {
    background: #f8fafc;
}

[data-theme="light"] .shadow-layer {
    background: var(--bg-primary);
}

[data-theme="light"] .effect-card {
    background: #ffffff;
}

/* =====================================================
   DARK THEME ADJUSTMENTS
   ===================================================== */
[data-theme="dark"] .shadow-preview {
    background: #2d3748;
}

[data-theme="dark"] .text-shadow-preview {
    background: #2d3748;
}

[data-theme="dark"] .text-shadow-preview__text {
    color: #e2e8f0;
}

[data-theme="dark"] .effect-card {
    background: #2d3748;
}

[data-theme="dark"] .neu-shape-btn {
    background: var(--bg-secondary);
}

[data-theme="dark"] .neu-shape-preview {
    background: var(--bg-secondary);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.3), -4px -4px 8px rgba(255,255,255,0.05);
}

/* =====================================================
   COPY NOTIFICATION
   ===================================================== */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.75rem 1.5rem;
    background: var(--success);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-notification--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-notification--error {
    background: var(--error);
}

/* =====================================================
   INLINE MESSAGES (replaces alerts)
   ===================================================== */
.inline-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.inline-message--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.inline-message--error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.inline-message--warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
