    .temperature-container{
            max-width: 60%;
            margin: 2rem auto;
            padding: 2rem;
            background: var(--card); 
            border-radius: 1rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
            color: var(--text); 
        }
        .temperature-container:hover {
          transform: translateY(-1px);
          opacity: 1;
        }

        .temperature-container h1 {
          font-size: 2rem;
          font-weight: 900;
          margin: .4rem 0 0.5rem;
          text-align: center;
          color: var(--text);
        }

        .temperature-container p {
          font-size: 1rem;
          text-align: center;
          color: var(--soft);
        }

        .converter-grid {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 1rem;
            background: var(--muted);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            padding: 1.5rem 1rem 1.5rem;
            border-radius: 12px;
            border: 0rem;
            overflow: auto;
        }

        .converter-grid label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .converter-grid input, 
        .converter-grid select {
            width: 100%;
            padding: .9rem 1rem;
            border-radius: 10px;
            border: 1px solid var(--border);
            font-size: 1.2rem; 
        }

        .input-wrapper {
            position: relative;
            width: 100%; 
        }

        .input-wrapper input:not(:placeholder-shown) + .clear-btn {
            display: block; 
        }

        /* Input fields */
        .input-field {
          font-size: 1rem;
          max-width: 100%;
          padding: 0.75rem 1rem;
          border-radius: 0.75rem;
          background:  #f8f9fc;
          color: black;
          transition: all 0.2s ease;
          overflow: auto;
        }

        .input-field:focus {
          border-color: var(--primary);
          box-shadow: 0 0 0 3px var(--ring);
          outline: none;
        }

        .clear-btn {
            position: absolute;
            right: 13px;
            top: 35%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: var(--soft);
            cursor: pointer;
            padding: 5px;
            display: none; 
        }

        .swap-btn {
            margin:auto;
            padding: 1rem;
            border-radius: 50%;         
            width: 48px;
            height: 48px;
        }

        .result-display-wrapper {
            position: relative;
            max-width: 100%;
            overflow: auto;
        }

        .result-display {
            display: flex;
            max-width: 100%;
            min-height: 80px; 
            font-size: 1.5rem; 
            font-weight: 700;
            padding: 1.5rem 1rem;
            text-align: center;
            justify-content: center;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #f8f9fc;
            color: black;
            white-space: nowrap;
        }

        .formula-display {
            text-align: center;
            color: var(--soft);
            margin-top: 1rem;
            min-height: 1.5rem;
            transition: opacity 0.3s;
        }

        .comparison-table {
            width: 100%;
            margin-top: 1.5rem;
            border-collapse: collapse;
        }

        .comparison-table th, .comparison-table td {
            padding: 0.75rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        .comparison-table th {
            color: var(--soft);
            font-weight: 600;
        }

        .comparison-table td:last-child {
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.5rem;
        }

        .copy-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            color: var(--soft);
            padding: 0.25rem;
            border-radius: 6px;
        }

        .copy-btn:hover {
            color: var(--primary);
            background: var(--muted);
        }

        .copy-feedback {
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            background: #28a745;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
        }

   /* Cards & Text */
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .card h2 {
    font-size: 1.5rem; 
    text-align: center;
  }

  .card p {
    font-size: 1rem 
  }



  /* =========================
   MOBILE ENHANCEMENTS 
   ========================= */
@media (max-width: 520px) {

  /* Container */
  .temperature-container {
    max-width: 100% !important;
    padding: 1.2rem !important;
    margin: 1rem auto 1rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    overflow: auto;
  }

  /* Headings & Text */
  .temperature-container h1 {
    font-size: 1.55rem !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .temperature-container p {
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  /* Converter Grid */
  .converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.7rem;
    padding: 1.5rem 1rem 1.5rem;
    border-radius: 12px;
    border: 0rem;
    overflow: auto;
  }

  .converter-grid label {
    display: block;
    font-size: 1rem !important;
    font-weight: 700;
  }

  .converter-grid input,
  .converter-grid select {
    width: 100%;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.96rem !important;
    border-radius: 8px !important;
    min-height: 46px !important;
    overflow: auto;
  }

  /* Input Wrapper */
  .input-wrapper {
    position: relative;
    width: 100%; 
  }

  .input-wrapper input:not(:placeholder-shown) + .clear-btn {
            display: block; 
        }

   /* Input fields */
        .input-field {
          font-size: 1rem;
          max-width: 100%;
          padding: 0.75rem 1rem;
          border-radius: 0.75rem;
          background: #f8f9fc;
          color: black;
          transition: all 0.2s ease;
          overflow: auto;
     }

  .clear-btn {
     position: absolute;
     right: -3px;
     top: 32%;
     transform: translateY(-50%); 
  }

  /* Swap Button */
   .swap-btn {
     margin: auto;  
     padding: 0.6rem;
     border-radius: 50%;         
     width: 40px;
     height: 40px;
  }

  /* Result Wrapper */
  .result-display-wrapper {
    position: relative;
    width: 100%;
  }

  .result-display {
    display: flex;
    max-width: 100%;
    min-height: 50px; 
    font-size: 1rem; 
    font-weight: 600;
    padding: 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8f9fc;
    color: black;
    overflow: auto;
  }

  /* Formula Display */
  .formula-display {
    text-align: center;
    color: var(--soft);
    margin-top: 1rem;
    min-height: 1.5rem;
    transition: opacity 0.3s;
  }

  /* Cards & Text */
  .card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .card h2 {
    font-size: 1.15rem !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
  }

  .card p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  /* Focus Highlights */
  input:focus,
  select:focus,
  button:focus {
    outline: 2px solid var(--ring);
    outline-offset: 0.5px;
  }
}

/* =========================
   TABLET ENHANCEMENTS 
   ========================= */
@media (min-width: 521px) and (max-width: 820px) {

  .temperature-container {
    max-width: 100%;
    margin: 2 auto 1rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    overflow: auto;
  }

  .temperature-container h1 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  .temperature-container p {
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  .converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem 1.5rem;
    border-radius: 12px;
    border: 0rem;
    overflow: auto;
  }

  .converter-grid label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
  }

  .converter-grid input,
  .converter-grid select {
    width: 100%;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.96rem !important;
    border-radius: 8px !important;
    min-height: 46px !important;
    overflow: auto;
  }

  .input-wrapper {
    position: relative;
    width: 100%;
  }

    .input-wrapper input:not(:placeholder-shown) + .clear-btn {
            display: block; 
        }

   /* Input fields */
        .input-field {
          font-size: 1rem;
          max-width: 100%;
          padding: 0.75rem 1rem;
          border-radius: 0.75rem;
          background: #f8f9fc;
          color: black;
          transition: all 0.2s ease;
          overflow: auto;
     }

       .clear-btn {
     position: absolute;
     right: -4px;
     top: 32%;
     transform: translateY(-50%); 
  }

  /* Result Wrapper */
  .result-display-wrapper {
    position: relative;
    width: 100%;
  }

  .result-display {
    display: flex;
    max-width: 100%;
    min-height: 50px; 
    font-size: 1rem; 
    font-weight: 600;
    padding: 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8f9fc;
    color: black;
    overflow: auto;
  }

  .card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .card h2 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 1rem;
  }
}


/* =========================
   SMALL DESKTOP 
   ========================= */
@media (min-width: 600px) and (max-width: 1200px) {

  .temperature-container {
    max-width: 75%;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: auto;
  }

  .temperature-container h1 {
    font-size: 2rem;
  }

  .converter-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

   /* Input Wrapper */
  .input-wrapper {
    position: relative;
    width: 100%; 
  }

  .input-wrapper input:not(:placeholder-shown) + .clear-btn {
            display: block; 
        }

   /* Input fields */
        .input-field {
          font-size: 1rem;
          max-width: 100%;
          padding: 0.75rem 1rem;
          border-radius: 0.75rem;
          background: #f8f9fc;
          color: black;
          transition: all 0.2s ease;
          overflow: auto;
     }

  /* Result Wrapper */
  .result-display-wrapper {
    position: relative;
    width: 100%;
  }

  .result-display {
    display: flex;
    max-width: 100%;
    min-height: 50px; 
    font-size: 1rem; 
    font-weight: 600;
    padding: 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8f9fc;
    color: black;
    overflow: auto;
  }

  .card {
    padding: 2rem;
    margin-top: 2rem;
  }

  .card h2 {
    font-size: 1.35rem;
  }

  .card p {
    font-size: 1.05rem;
  }
}

