body{
    display: grid;
    grid-template-columns: minmax(360px, 360px) 1fr;
    width: 100vw;
    height: 100svh;
    background-color: #F5F5F5;
    background-image: url('./Assets-root/dots.svg');
    background-repeat: repeat;
    background-position: center;
    background-size: cover;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.inter-semibold {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
.inter-medium {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.inter-regular {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.primary-color{
color:#404040;   
}
section{
    height: 100%;
}

section:first-child {
    grid-column: 1;
}

section:last-child {
    grid-column: 2;
}

#mobile-nav {
    display: none;
}

.nav-container{
    display: flex;
    width: 100%;
    height: 100%;
    padding: 56px 32px 32px 32px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-right: 1px solid #E7E7E7;
    background: #FFF;
}

.result-container{
    display: flex;
    width: 100%;
    height: 100%;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.Panel-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 72px;
    align-self:stretch
}

#logo{
    color: #000;
    height: 80px;
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 110%; /* 26.4px */
}

.panels{
   display: flex;
flex-direction: column;
align-items: flex-start;
gap: 32px;
align-self: stretch;
}
.overall-input-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    align-self: stretch;
}
.char-count{
     color: #404040;
    font-size: 12px;
    display: flex;
padding: 4px;
justify-content: flex-end;
align-items: center;
gap: 10px;
border-radius: 6px;
background: #E7E7E7;
}
#input-container{
    display: flex;
justify-content: space-between;
align-items: center;
flex: 1 0 0;
gap:16px;
}
#clearbtn{
    display: flex;
width: 27px;
height: 24px;
justify-content: center;
align-items: center;
border-radius: 999px;
background: #E7E7E7 ;
}
#clearbtn:hover {
  background-color: #40404029;
  cursor: pointer;
}
#name-input{
    color: #404040;
font-size: 32px;
font-style: normal;
font-weight: 500;
line-height: 110%; /* 35.2px */
letter-spacing: 4%;/* 0.32px */;
border: 0px;
width:100%
}
#name-input::placeholder {
  color: #C4C4C4;
}

#name-input:active, #name-input:focus {
  border:0px;
  outline: none;
  box-shadow: none;
}

.controls-container{
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
align-self: stretch;
}

.controls{
    display: flex;
height: 40px;
align-items: flex-start;
gap: 16px;
align-self: stretch;
}

.ctrls-btn{
    display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex: 1 0 0;
align-self: stretch;
border-radius: 12px;
background: #E7E7E7;
color: #404040;
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 110%; /* 17.6px */
border: 0px;
padding: 8px 12px
}

.ctrls-btn:hover {
  background-color: #40404029;
  cursor: pointer;
}

.ctrls-btn.active {
  background-color: var(--primary-color, #404040);
  color: #fff;
}

.ctrls-btn.active svg * {
  fill: #fff !important;
opacity: 1 !important;}

.range-container {
  display: flex;
  position: relative;
height: 40px;
padding: 0 0px;
justify-content: space-between;
align-items: center;
align-self: stretch;
border-radius: 12px;
background: #E7E7E7;
}

.rangebits-container{
    display: flex;
    width: 100%;
    height: 24px;
    padding: 0 16px;
    justify-content: space-between;
    align-items: center;
}
.range-bits {
  width: 10px;
  height: 24px;
  border-radius: 200px;
background: rgba(0, 0, 0, 0.10);
}
.range-bits:hover {
  background-color: #40404044;
  cursor: pointer;
}
.range-slider{
    display: flex;
width: 100%;
height: 40px;
padding: 2px;
justify-content: flex-end;
align-items: center;
gap: 10px;
position: absolute;
border-radius: 12px;
overflow: hidden;
pointer-events: none;
}

.range-fill {
    position: absolute;
    display: flex;
    justify-content: flex-end;
align-items: center;
padding: 2px;
    left: 0;
    top: 0;
    width:100%;
    height: 100%;
    background: #404040;
    border-radius: 12px;
  z-index: 0;
  pointer-events: none;
  transition: width 0.1s;
}

.slider-thumb{
    width: 24px;
    height: 100%;
    border-radius: 10px;
    background: #FFF;
    cursor: pointer;
    pointer-events: auto;
}
.distortion-path{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.676px;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background-color: white;
    padding: 24px;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.distortion-path.wave-alignment {
    align-items: center;
}

.distortion-path.bar-alignment {
    align-items: flex-start;
}

.distortion-path.arc-alignment {
    align-items: flex-end;
}
.distortion-effect{
    background-color: transparent;
    color: #333;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: height 0.1s ease-in-out;
    overflow: hidden;
    position: relative;
}

.distortion-effect.wave-effect {
    align-items: flex-end;
}

.distortion-effect.arc-effect {
    align-items: flex-end;
}

.distortion-effect svg {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    object-fit: fill;
    object-position: bottom;
}

.distortion-effect.wave-effect svg {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    object-position: center;
}

.distortion-effect.arc-effect svg {
    top: auto;
    bottom: 0;
    transform: none;
    object-position: bottom;
}

.distortion-effect svg:not(.wave-effect):not(.arc-effect) {
    top: 0;
    bottom: auto;
    transform: none;
    object-position: top;
}

/* Desktop breakpoint - hide mobile nav on screens 600px and larger */
@media (min-width: 600px) {
    #mobile-nav {
        display: none !important;
    }
    
    .mobile-grabber {
        display: none !important;
    }
}

/* Mobile breakpoint - hide desktop nav on screens smaller than 600px */
@media (max-width: 599px) {
    #desktop-nav {
        display: none;
    }
    
    #mobile-nav {
        display: block;
        background-color: transparent;
        padding: 0px 24px;
        height: auto;
        position: relative;
        width: 100%;
        max-width: 100vw; /* Prevent horizontal overflow */
        transform: translate3d(0, 0, 0);
        transition: transform 0.3s ease-out;
        background: var(--background-primary);
        border-top: 1px solid var(--border-secondary);
        /* Hardware acceleration for smooth animations */
        will-change: transform;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        overflow-x: hidden; /* Prevent horizontal overflow */
    }
    
    #logo {
        display: none !important;
    }
    
    body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 0px;
    }
    
    section:nth-child(1) {
        grid-column: 1;
        grid-row: 2;
    }
    
    section:nth-child(2) {
        grid-column: 1;
        grid-row: 1;
        padding-bottom: 0px;
    }

    .ctrls-btn{
    display: flex;
padding: 8px;
justify-content: center;
align-items: center;
border: 0px;
height: 44px;
min-width: 0; /* Allow buttons to shrink */
flex: 1; /* Equal width buttons */
overflow: hidden; /* Prevent content overflow */
}

.controls-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Include padding in width calculation */
    /* Hardware acceleration for smooth opacity transitions */
    will-change: opacity;
    backface-visibility: hidden;
}
#mobile-controls {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    align-self: stretch;
    max-width: 100%; /* Prevent overflow */
}

#md-ctrls {
    flex-direction: row;
}

#md-distorts {
    flex-direction: row;
}

#md-ctrls .ctrls-btn svg {
    width: 24px;
    height: 24px;
}

#md-distorts .ctrls-btn svg {
    width: 40px;
    height: 24px;
}

#input-container {
    width: 100%;
    align-self: stretch;
}

.controls{
    display: flex;
height: 44px;
align-items: flex-start;
gap: 8px;
align-self: stretch;
}
#distorts{
    gap: 8px;
    align-items: stretch;
    width: 100%;
}
#md-name-input{
    color: #404040;
font-size: 28px;
font-style: normal;
font-weight: 500;
line-height: 100%; /* 35.2px */
letter-spacing: 0%;/* 0.32px */;
border: 0px;
width:100%
}
#md-name-input::placeholder {
  color: #C4C4C4;
}

#md-name-input:active, #md-name-input:focus {
  border:0px;
  outline: none;
  box-shadow: none;
}
.range-container {
  display: flex;
  position: relative;
height: 44px;
}
.range-slider{
    display: flex;
width: 100%;
height: 44px;
}
.result-container{
    padding-bottom: 0px;
    height: 100%;
    min-height: 100%;
}
.nav-container{
    border-radius: 24px 24px 0px 0px;
    border-right: 0px solid #E7E7E7;
    transition: all 0.3s ease-out;
}

/* Collapsed state for mobile nav */
#mobile-nav.collapsed .panels {
    gap: 0 !important;
    padding-bottom: 0;
}

#mobile-nav.collapsed .nav-container {
    padding-bottom: 16px; /* Reduce bottom padding when collapsed */
}

#mobile-nav .panels {
    transition: gap 0.3s ease-out, padding 0.3s ease-out;
}
#md-clearbtn{
    display: flex;
width: 27px;
height: 24px;
justify-content: center;
align-items: center;
border-radius: 999px;
background: #E7E7E7 ;
}
#md-clearbtn:hover {
  background-color: #40404029;
  cursor: pointer;
}
.grabber{
    width: 56px;
height: 8px;
flex-shrink: 0;
border-radius: 200px;
background: #A7A7A7;
}
.mobile-grabber{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-grabber:active {
    cursor: grabbing;
}
.panels{
    gap:24px
}
}