/* <!-- ======================= STYLES.CSS ======================= --> */
/* <style> */
  body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    font-family: system-ui;
  }

  .calculator {
    width: 320px;
    background: #111;
    border-radius: 20px;
    padding: 15px;
  }

  .display-container {
    text-align: right;
    padding: 10px;
  }

  .expression {
    color: #aaa;
    font-size: 18px;
    min-height: 25px;
  }

  .preview {
    color: #666;
    font-size: 16px;
    min-height: 20px;
  }

  .display {
    color: white;
    font-size: 40px;
  }

  .buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .btn {
    height: 60px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    background: #222;
    color: white;
  }

  .equals {
    background: #ff9500;
  }

  .zero {
    grid-column: span 2;
  }

  /* CSS for History + Theme */
  #themeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  .history {
    margin-left: 20px;
    color: white;
  }

  .light-mode {
    background: #f5f5f5;
  }

  .light-mode .calculator {
    background: white;
  }

  .light-mode .btn {
    background: #ddd;
    color: black;
  }
  /* footer  */

  .footer-message {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  overflow: hidden;
  border-top: 1px solid #333;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  color: #ff9500;
  font-size: 16px;
  padding: 10px 0;
  animation: scrollText 12s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.light-mode .footer-message{
  background:#eee;
}

.light-mode .scroll-text{
  color:#ff9500;
}

/* Features Card */
#featuresBtn{
  position:absolute;
  top:20px;
  left:20px;
  padding:8px 14px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  background:#ff9500;
  color:white;
}

.features-card{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) scale(0);
  background:#1b1b1b;
  color:white;
  padding:25px;
  width:280px;
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
  transition:0.3s ease;
  text-align:left;
}

.features-card.show{
  transform:translate(-50%,-50%) scale(1);
}

.features-card h3{
  margin-top:0;
}

.features-card ul{
  padding-left:18px;
}

.features-card li{
  margin:6px 0;
}

#closeFeatures{
  margin-top:10px;
  padding:6px 12px;
  border:none;
  border-radius:6px;
  background:#ff9500;
  color:white;
  cursor:pointer;
}

.light-mode .features-card{
  background:white;
  color:black;
}




/* </style> */
