/* Tile Calculator - Premium Styling */

.apple-glass {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

html:not(.dark) .apple-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.custom-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    transition: all 0.2s ease-in-out;
}

html:not(.dark) .custom-input {
    background: #ffffff;
    border: 1px solid #d4d4d8;
    color: #18181b;
}

.custom-input:focus {
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 14px rgba(13, 148, 136, 0.25);
}

/* Custom Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    outline: none;
}

html:not(.dark) input[type="range"] {
    background: #e4e4e7;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d9488;
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.preset-active {
    background: rgba(13, 148, 136, 0.25) !important;
    border-color: rgba(13, 148, 136, 0.6) !important;
    color: #2dd4bf !important;
    font-weight: 700;
}

html:not(.dark) .preset-active {
    background: rgba(13, 148, 136, 0.1) !important;
    border-color: rgba(13, 148, 136, 0.3) !important;
    color: #0f766e !important;
}

/* Tile Layout Grid mockup container */
.tile-mockup-grid {
    display: grid;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

html:not(.dark) .tile-mockup-grid {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}

.tile-mockup-cell {
    background: rgba(13, 148, 136, 0.25);
    border: 1px solid rgba(13, 148, 136, 0.45);
    aspect-ratio: 1;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

html:not(.dark) .tile-mockup-cell {
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.35);
}

.tile-mockup-cell:hover {
    background: rgba(13, 148, 136, 0.4);
    border-color: rgba(13, 148, 136, 0.7);
}

/* Modern Switcher Component */
.modern-switcher {
    display: inline-flex;
    padding: 2px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html:not(.dark) .modern-switcher {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modern-switcher button {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

html:not(.dark) .modern-switcher button {
    color: rgba(24, 24, 27, 0.6);
}

.modern-switcher button.preset-active {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

html:not(.dark) .modern-switcher button.preset-active {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}