    /* Variables */
    :root {
      --bg: #F6F6F6;
      --chatbot: #3D3E45;
        --bg-color: #f4f7f6;
        --panel-bg: #ffffff;
        --primary-color: #2563eb;
        --secondary-color: #64748b;
        --danger-color: #ef4444;
        --success-color: #2ecc71;
        --border-color: #e2e8f0;
        --text-main: #1e293b;
        --header-height: 50px;
        --status-height: 30px;
        --main-area-height-mobile: 40vh;
    }

      
    html, head, body {
        margin:0px;
        padding:0px;
        width:100%;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        background-color: var(--bg-color);
        color: var(--text-main);
        margin: 0;
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }


    header {
        background-color: #1e293b;
        color: white;
        padding: 0 1rem;
        height: var(--header-height);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }


    .ai_wrapper{
        position:relative;
        display:block;
        width:300px;
        height:300px;
        border:1px solid black;
    }

    #ai_container{
        position:relative;
        padding:10px;
        width:calc(100% - 20px); 
        height:calc(100% - 20px); 
    }

      
      
      
      
     /* the AI bot */ 
      
    #ai_bot_outer {
        display: flex;
        justify-content: center;
        align-items: center; 
        width: 80%;
        height: 60%; 
        position: absolute; 
        top: 40%;
        left: 50%; 
        border-radius: 40% 10% 40% 40%; 
        background-size: 400% 100%;
        background: linear-gradient(
            90deg,
            rgba(231, 76, 60, 1) 0%,
            rgba(255, 154, 0, 1) 10%,
            rgba(241, 196, 15, 1) 30%,
            rgba(46, 204, 113, 1) 45%,
            rgba(26, 188, 156, 1) 57%,
            rgba(52, 152, 219, 1) 70%,
            rgba(155, 89, 182, 1) 83%,
            rgba(253, 121, 168, 1) 93%,
            rgba(231, 76, 60, 1) 100%
        );
    }
  
      
    #ai_bot_inner {
        display: flex;
        justify-content: center;
        align-items: center; 
        width: 85%;
        height: 80%; 
        position: absolute; 
        top: 50%;
        left: 50%; 
        transform: translate(-50%, -50%); 
        border-radius: 35% 5% 35% 35%; 
        background:white;
	  overflow:hidden;
    }

    #ai_bot_shadow {
        position:relative;
        border-radius: 100%; 
        background: rgba(30, 30, 30, 0.4);	
        box-shadow: 0px 0vw 2vw rgba(105, 105, 105, 0.4);	
        width: 80%;
        height: 10%;  
        left:10%;
        top:85%;
        transition: 0.3s ease-out;
        animation: oscillateShadowUpDown 2s ease-out infinite; 
    }

      
      
      
    
    /* Left Eye */  
    #ai_bot_outer_lefteye {
        border-radius: 100%; 
        background:black;
    }

    #ai_bot_inner_lefteye{
        position:relative;
        border-radius: 100%; 
        background:white;
        margin:20%;
    }
      
      
          
    /* Right Eye */  
    #ai_bot_outer_righteye {
        border-radius: 100%; 
        background:black;
    }

    #ai_bot_inner_righteye{
        position:relative;
        border-radius: 100%; 
        background:white;
        margin:20%;
    }
      

      
    /* Mouth */  
    #ai_bot_mouth{
        position:absolute;
        background:black;
    }

      
      
      
      
      
    /* ================= */ 
    /* Body  */  
    /* ================= */ 
      
      
      /*
        background: linear-gradient(
            90deg,
            rgba(255, 0, 0, 1) 0%,
            rgba(255, 154, 0, 1) 10%,
            rgba(208, 222, 33, 1) 20%,
            rgba(79, 220, 74, 1) 30%,
            rgba(63, 218, 216, 1) 40%,
            rgba(47, 201, 226, 1) 50%,
            rgba(28, 127, 238, 1) 60%,
            rgba(95, 21, 242, 1) 70%,
            rgba(186, 12, 248, 1) 80%,
            rgba(251, 7, 217, 1) 90%,
            rgba(255, 0, 0, 1) 100%
        );
      */
      
    .ai_bot_body_neutral{
        animation: oscillateUpDown 2s ease-out infinite, rotateGradient 3s ease-out infinite;
        transform: translate(-50%, -50%);
        /*background:black; */     
    }

      
    .ai_bot_body_listen_nod {
        animation: oscillateListeningNod 2s ease-out infinite, rotateGradient 3s ease-out infinite; 
        transform: translate(-50%, -50%);
        /*background:black;*/
    }
      
      
        
      
      
      
      
      
      
    /* ================= */ 
    /* Eye Expressions */  
    /* ================= */ 
      
      
      .outer_neutral {
        transition: 0.1s ease-out;
        margin:10%;	
        width: 30%;
        height: 60%; 
      }
      
      .outer_close {
        transition: width 0.1s ease-out, height 0.1s ease-out;  
        margin:10%;	
        width: 30%;
        height: 10%; 
      }
      
      
    .outer_squint {
        transition: 0.1s ease-out;
        margin:10%;	
        width: 30%;
        height: 20%; 
        border-radius: 5%; 
    }
      
    .outer_happy {
        transition: 0.1s ease-out;
        margin:10%;	
        width: 30%;
        height: 60%; 
        margin-top:-3%;
    }
      
    .outer_very_happy {
        transition: 0.1s ease-out;
        margin:10%;	
        width: 30%;
        height: 60%; 
        margin-top:-6%;
    }
      
      
    .outer_sigh {
        transition: 0.1s ease-out;
        margin:10%;	
        width: 30%;
        height: 60%;
        margin-top:20%;
    }

      
      
      
      
      
    .inner_neutral {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:15%;
        top:0%;  
    }
      
    .inner_close {
        transition: width 0.1s ease-out, height 0.1s ease-out;
        width: 50%;
        height: 1%;  
        left:10%;
        top:0%;
        opacity:0;
    }
      
    .inner_squint {
        transition: 0.1s ease-out;
        width: 50%;
        height: 30%;  
        left:5%;
        top:0%;
    }

      
    .inner_squint_left {
        transition: 0.1s ease-out;
        width: 50%;
        height: 30%;  
        left:-20%;
        top:0%;
    }
      
    .inner_squint_right {
        transition: 0.1s ease-out;
        width: 50%;
        height: 30%;  
        left:30%;
        top:0%;
    }
      
      
      

    .inner_look_left {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:-15%;
        top:10%;
    }

    .inner_look_right {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:45%;
        top:10%;  
    }

    .inner_look_up {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:15%;
        top:-10%;
        }

    .inner_look_down {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:15%;
        top:30%;  
    }
      
      
    .inner_look_upleft {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:-5%;
        top:-5%;
    }
      
    .inner_look_upright {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:35%;
        top:-5%;  
    }
      
      
    .inner_look_downleft {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:-5%;
        top:25%;
    }
      
      
    .inner_look_downright {
        transition: 0.1s ease-out;
        width: 30%;
        height: 50%;  
        left:40%;
        top:25%;  
    }
      
      
      
      
      
      .inner_happy {
        transition: 0.1s ease-out;
        width: 100%;
        height: 80%; 
	    left:-20%;
        top:15%; 
      }
      
      .inner_very_happy {
        transition: 0.1s ease-out;
        width: 110%;
        height: 90%; 
	    left:-25%;
        top:0%;
      }
      
      .inner_sad {
        width: 100%;
        height: 60%; 
	    left:-20%;
        top:-50%;   
      }
      
      
    .inner_sigh {
        transition: 0.1s ease-out;
        width: 110%;
        height: 90%; 
        left:-24%;
        top:-30%;
    }
      
      
      
      
      
    /* ================= */ 
    /* Mouth Expressions */  
    /* ================= */ 
      
      
    .mouth_neutral {
        transition: 0.1s ease-out;
        border-radius: 100%; 
        left:40%;
        top:90%;
        width:20%;
        height:0%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }
      
     
      

      
    .mouth_talk1 {
        transition: 0.1s ease-out;
        border-radius: 40%; 
        left:35%;
        top:80%;
        width:30%;
        height:10%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }
      
      
    .mouth_talk2 {
        transition: 0.1s ease-out;
        border-radius: 40%; 
        left:45%;
        top:60%;
        width:10%;
        height:30%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }
      
    .mouth_talk3 {
        transition: 0.1s ease-out;
        border-radius: 40%; 
        left:40%;
        top:62%;
        width:20%;
        height:30%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }
      
    .mouth_talk4 {
        transition: 0.1s ease-out;
        border-radius: 40%; 
        left:35%;
        top:60%;
        width:30%;
        height:30%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }
      
      
    .mouth_talk5 {
        transition: 0.1s ease-out;
        border-radius: 100% 100% 40% 40%; 
        left:32%;
        top:60%;
        width:35%;
        height:30%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }

      
      
    .mouth_talk6 {
        transition: 0.1s ease-out;
        border-radius: 100% 100% 40% 40%; 
        left:35%;
        top:48%;
        width:30%;
        height:40%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }

      
      
    .mouth_talk7 {
        transition: 0.1s ease-out;
        border-radius: 100% 100% 40% 40%; 
        left:45%;
        top:79%;
        width:15%;
        height:10%;
        clip-path: polygon(0 70%, 100% 70%, 75% 100%, 26% 100%);
    }

      
      
      
      
      
      
      
            
    .mouth_smile1 {
        transition: 0.1s ease-out;
        border-radius: 40%; 
        left:40%;
        top:60%;
        width:20%;
        height:30%;
        clip-path: polygon(0 46%, 100% 46%, 85% 100%, 16% 100%);
    }
      
      
    .mouth_smile2 {
        transition: 0.1s ease-out;
        border-radius: 40%; 
        left:35%;
        top:60%;
        width:30%;
        height:30%;
        clip-path: polygon(0 46%, 100% 46%, 85% 100%, 16% 100%);
    }
      
      
      
      
      
      

      
      
     
    .mouth_thinking1 {
        transition: 0.1s ease-out;
        border-radius: 0%; 
        left:20%;
        top:70%;
        width:20%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
    .mouth_thinking2 {
        transition: 0.1s ease-out;
        border-radius: 0%; 
        left:30%;
        top:70%;
        width:20%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
      
    .mouth_thinking3 {
        transition: 0.1s ease-out;
        border-radius: 0%; 
        left:40%;
        top:70%;
        width:20%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
      
    .mouth_thinking4 {
        transition: 0.1s ease-out;
        border-radius: 0%; 
        left:45%;
        top:70%;
        width:10%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
    .mouth_thinking5 {
        transition: 0.1s ease-out;
        border-radius: 100%; 
        left:50%;
        top:70%;
        width:5%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
    .mouth_thinking6 {
        transition: 0.1s ease-out;
        border-radius: 0%; 
        left:50%;
        top:70%;
        width:20%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
      
    .mouth_thinking7 {
        transition: 0.1s ease-out;
        border-radius: 0%; 
        left:60%;
        top:70%;
        width:20%;
        height:10%;
        clip-path: polygon(0 46%, 100% 46%, 100% 100%, 0 100%);
    }
      
      
      
      
      
      
      
   
      
      
      
      
      
      
      
      
      
      
    /* ================= */ 
    /* Keyframes */  
    /* ================= */ 
      
    @keyframes oscillateUpDown {
      0% {
        transform: translateX(-50%) translateY(-50%);
      }
      50% {
        transform: translateX(-50%) translateY(-40%);
      }
      100% {
        transform: translateX(-50%) translateY(-50%);
      }
    }
      

    @keyframes oscillateShadowUpDown {
      0% {
        transform: scale(0.5);
      }
      50% {
        transform: scale(1); /* 10% width and 5% height increase */
      }
      100% {
        transform: scale(0.5);
      }
    }
      
      
      
      
      
      
      
    @keyframes oscillateShakeNo {
      0% {
        transform: translateX(-50%) translateY(-50%);
      }
      40% {
        transform: translateX(-60%) translateY(-50%);
      }
      45% {
        transform: translateX(-40%) translateY(-50%);
      }
      50% {
        transform: translateX(-60%) translateY(-50%);
      }
      55% {
        transform: translateX(-40%) translateY(-50%);
      }
      60% {
        transform: translateX(-60%) translateY(-50%);
      }
      65% {
        transform: translateX(-40%) translateY(-50%);
      }
      70% {
        transform: translateX(-60%) translateY(-50%);
      }
      100% {
        transform: translateX(-50%) translateY(-50%);
      }
    }
      
      
    @keyframes oscillateShadowShakeNo {
      0% {
        transform: translateX(0%) translateY(-0%)  scale(0.7);
      }
      40% {
        transform: translateX(-10%) translateY(-0%) scale(0.7);
      }
      45% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
      50% {
        transform: translateX(-10%) translateY(-0%) scale(0.7);
      }
      55% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
      60% {
        transform: translateX(-10%) translateY(-0%) scale(0.7);
      }
      65% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
      70% {
        transform: translateX(-10%) translateY(-0%) scale(0.7);
      }
      100% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
    }
      
      
      
      
      
      
      
    @keyframes oscillateShakeYes {
      0% {
        transform: translateX(-50%) translateY(-50%);
      }
      40% {
        transform: translateX(-50%) translateY(-60%);
      }
      45% {
        transform: translateX(-50%) translateY(-50%);
      }
      50% {
        transform: translateX(-50%) translateY(-60%);
      }
      55% {
        transform: translateX(-50%) translateY(-50%);
      }
      60% {
        transform: translateX(-50%) translateY(-60%);
      }
      65% {
        transform: translateX(-50%) translateY(-50%);
      }
      70% {
        transform: translateX(-50%) translateY(-60%);
      }
      100% {
        transform: translateX(-50%) translateY(-50%);
      }
    }
      
      
      
    @keyframes oscillateShadowShakeYes {
      0% {
        transform: translateX(0%) translateY(-0%)  scale(1);
      }
      40% {
        transform: translateX(0%) translateY(-0%) scale(0.4);
      }
      45% {
        transform: translateX(0%) translateY(-0%) scale(0.6);
      }
      50% {
        transform: translateX(0%) translateY(-0%) scale(0.4);
      }
      55% {
        transform: translateX(0%) translateY(-0%) scale(0.6)
      }
      60% {
        transform: translateX(0%) translateY(-0%) scale(0.4);
      }
      65% {
        transform: translateX(0%) translateY(-0%) scale(0.6);
      }
      70% {
        transform: translateX(0%) translateY(-0%) scale(0.4);
      }
      100% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
    }
      
      
      
      
      
    @keyframes oscillateShakeLaugh{
      0% {
        transform: translateX(-50%) translateY(-50%);
      }
      10% {
        transform: translateX(-50%) translateY(-60%);
      }
      13% {
        transform: translateX(-50%) translateY(-50%);
      }
      19% {
        transform: translateX(-50%) translateY(-60%);
      }
      21% {
        transform: translateX(-50%) translateY(-50%);
      }
      27% {
        transform: translateX(-50%) translateY(-60%);
      }
      30% {
        transform: translateX(-50%) translateY(-50%);
      }
      50% {
        transform: translateX(-50%) translateY(-70%);
      }
      56% {
        transform: translateX(-50%) translateY(-50%);
      }
      62% {
        transform: translateX(-50%) translateY(-60%);
      }
      65% {
        transform: translateX(-50%) translateY(-50%);
      }
      71% {
        transform: translateX(-50%) translateY(-60%);
      }
      74% {
        transform: translateX(-50%) translateY(-50%);
      }
      80% {
        transform: translateX(-50%) translateY(-60%);
      }
      83% {
        transform: translateX(-50%) translateY(-50%);
      }
      90% {
        transform: translateX(-50%) translateY(-60%);
      }
      100% {
        transform: translateX(-50%) translateY(-50%);
      }
    }
      
      
      
    @keyframes oscillateShadowShakeLaugh {
      0% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      10% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      13% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      19% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      21% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      27% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      30% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      50% {
        transform: translateX(0%) translateY(-20%) scale(0.6);
      }
      56% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      62% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      65% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      71% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      74% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      80% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      83% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
      90% {
        transform: translateX(0%) translateY(-10%) scale(0.8);
      }
      100% {
        transform: translateX(0%) translateY(-0%) scale(1);
      }
    }
      
      
      
      
      
    @keyframes oscillateListeningNod {
      0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
      }
      10% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      75% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      80% {
        transform: translateX(-50%) translateY(-40%) rotate(10deg);
      }
      85% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      90% {
        transform: translateX(-50%) translateY(-40%) rotate(10deg);
      }
      95% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      100% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
      }
    }
      
      
      
      
    @keyframes oscillateListeningNodShadow {
      0% {
        transform: scale(1);
      }
      10% {
        transform: scale(0.7);
      }
      75% {
        transform: scale(0.7);
      }
      80% {
        transform: scale(0.9);
      }
      85% {
        transform: scale(0.7);
      }
      90% {
        transform: scale(0.9);
      }
      95% {
        transform: scale(0.7);
      }s
      100% {
        transform: scale(1);
      }
    }
      
      
      
      /* DO SOMETHING WITH THIS - ACCIDENTALLY STUMBLED ON IT - AND IT LOOKS LIKE A BETTER LISTENING NOD - */
    @keyframes oscillateListeningNod2 {
      0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
      }
      10% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      75% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      80% {
        transform: translateX(-50%) translateY(-40%) rotate(10deg);
      }
      90% {
        transform: translateX(-50%) translateY(-40%) rotate(10deg);
      }
      100% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
      }
    }
      
      
      
      /* DO SOMETHING WITH THIS - ACCIDENTALLY STUMBLED ON IT - AND IT LOOKS LIKE A BETTER LISTENING NOD - */
    @keyframes oscillateListeningNod2Shadow {
      0% {
        transform: translateX(-0%) translateY(-0%) scale(1);
      }
      10% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
      75% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
      80% {
        transform: translateX(-0%) translateY(-0%) scale(0.9);
      }
      90% {
        transform: translateX(-0%) translateY(-0%) scale(0.8);
      }
      100% {
        transform: translateX(-0%) translateY(-0%) scale(1);
      }
    }
      
      
      
      
      
    @keyframes oscillateListeningWait {
      0% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
      50% {
        transform: translateX(-50%) translateY(-45%) rotate(10deg);
      }
      100% {
        transform: translateX(-50%) translateY(-50%) rotate(10deg);
      }
    }
      
    @keyframes oscillateListeningWaitShadow {
      0% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
      50% {
        transform: translateX(-0%) translateY(-0%) scale(1);
      }
      100% {
        transform: translateX(-0%) translateY(-0%) scale(0.7);
      }
    }
      
      
      
  /*    
      
    @keyframes scrollGradient {
      0% {
        background-position: 100% 0;
      }
      100% {
        background-position: 0 0;
      }
    }
      
      @keyframes rotateGradient {
          0% {
            background: linear-gradient(90deg);
          }
          50% {
            background: linear-gradient(270deg);
          }
          100% {
            background: linear-gradient(90deg);
          }
      }

      

*/
  
      
    @keyframes rotateGradient {
      0% {
        background: linear-gradient(0deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      2% {
        background: linear-gradient(5deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      4% {
        background: linear-gradient(10deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      6% {
        background: linear-gradient(15deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      8% {
        background: linear-gradient(20deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      10% {
        background: linear-gradient(35deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      12% {
        background: linear-gradient(42deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      14% {
        background: linear-gradient(49deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      16% {
        background: linear-gradient(56deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      18% {
        background: linear-gradient(63deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      20% {
        background: linear-gradient(70deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      22% {
        background: linear-gradient(77deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      24% {
        background: linear-gradient(84deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      26% {
        background: linear-gradient(91deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      28% {
        background: linear-gradient(98deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      30% {
        background: linear-gradient(105deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      32% {
        background: linear-gradient(112deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      34% {
        background: linear-gradient(119deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      36% {
        background: linear-gradient(126deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      38% {
        background: linear-gradient(133deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      40% {
        background: linear-gradient(140deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      42% {
        background: linear-gradient(147deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      44% {
        background: linear-gradient(154deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      46% {
        background: linear-gradient(161deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      48% {
        background: linear-gradient(168deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      50% {
        background: linear-gradient(175deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      52% {
        background: linear-gradient(182deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      54% {
        background: linear-gradient(189deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      56% {
        background: linear-gradient(196deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      58% {
        background: linear-gradient(203deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      60% {
        background: linear-gradient(210deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      62% {
        background: linear-gradient(217deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      64% {
        background: linear-gradient(224deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      66% {
        background: linear-gradient(231deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      68% {
        background: linear-gradient(238deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      70% {
        background: linear-gradient(245deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      72% {
        background: linear-gradient(252deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      74% {
        background: linear-gradient(259deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      76% {
        background: linear-gradient(266deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      78% {
        background: linear-gradient(273deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      80% {
        background: linear-gradient(280deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      82% {
        background: linear-gradient(287deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      84% {
        background: linear-gradient(294deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      86% {
        background: linear-gradient(301deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      88% {
        background: linear-gradient(308deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      90% {
        background: linear-gradient(320deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      92% {
        background: linear-gradient(340deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      94% {
        background: linear-gradient(345deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      96% {
        background: linear-gradient(350deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      98% {
        background: linear-gradient(355deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
      100% {
        background: linear-gradient(360deg, rgba(231, 76, 60, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(241, 196, 15, 1) 30%, rgba(46, 204, 113, 1) 45%, rgba(26, 188, 156, 1) 57%, rgba(52, 152, 219, 1) 70%, rgba(155, 89, 182, 1) 83%, rgba(253, 121, 168, 1) 93%, rgba(231, 76, 60, 1) 100%);
      }
    }
      


   #status-bar {
        background: #0f172a;
        color: #10b981;
        padding: 0 1rem;
        height: var(--status-height);
        line-height: var(--status-height);
        font-family: monospace;
        font-size: 11px;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Responsive Layout Container */
    .layout {
        display: flex;
        flex: 1;
        overflow: hidden;
    }

    /* Main Content Area */
    #main-display {
        flex: 1;
        background: #000;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--border-color);
    min-height:350px;
    }

    .placeholder-text {
        color: #475569;
        font-style: italic;
        text-align: center;
        padding: 20px;
    }


    /* Control Panel Sidebar */
    #control-panel {
        width: 380px;
        background: var(--panel-bg);
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .btn-reset {
        background-color: #fee2e2;
        color: var(--danger-color);
        border-color: #fecaca;
        font-weight: bold;
        padding: 5px 10px;
    }

    .btn-help {
        background-color: var(--success-color);
        color: white ;
        border-color: #27ae60;
        font-weight: bold;
        padding: 5px 10px;
        display: block;
        position: absolute;
        right: 90px;
    }

    .btn-grid-3x3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .btn-grid-3x3 button {
        width: 100%;
        padding: 10px;
        text-align: center;
        font-size: 14px;
    }


    /* Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none; /* Hidden by default */
        align-items: center;
        justify-content: center;
        z-index: 2000;
        backdrop-filter: blur(2px);
    }

    .modal-content {
        background: var(--panel-bg);
        width: 90%;
        max-width: 500px;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        overflow: hidden;
        animation: modalFadeIn 0.3s ease-out;
    }

    @keyframes modalFadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .modal-header {
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-header h2 {
        margin: 0;
        font-size: 1.25rem;
        color: var(--text-main);
    }

    .modal-body {
        padding: 24px;
        line-height: 1.6;
        color: var(--secondary-color);
        font-size: 14px;
    }

    .modal-footer-text {
        margin-top: 20px;
        font-size: 12px;
        color: #94a3b8;
        font-style: italic;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }

    .modal-actions {
        padding: 15px 24px;
        background: #f8fafc;
        display: flex;
        justify-content: flex-end;
    }

    .btn-primary {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 10px 24px;
        font-weight: 600;
    }

    .btn-primary:hover {
        filter: brightness(1.1);
    }







/* Mobile Specific Overrides */
@media (max-width: 800px) {
    .layout {
        flex-direction: column;
    }

    #main-display {
        height: var(--main-area-height-mobile);
        flex: none;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        z-index: 10;
    }

    #control-panel {
        width: 100%;
        flex: 1; 
        padding: 15px;
        box-sizing: border-box;
    }
}

.group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

h4 {
    margin: 0 0 12px 0;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

button {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
}

button:active {
    background-color: #e2e8f0;
    transform: scale(0.98);
}




