@import url('https://fonts.googleapis.com/css2?family=Orbitron&family=Poppins&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #121212);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  transition: background 0.5s, color 0.5s;
}

.container {
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.header h1 {
  font-size: 2.2rem;
  color: #00f7ff;
}

#clock {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 20px;
}

.calculator {
  background-color: #111;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 30px #00f7ff50;
  width: 320px;
  margin: auto;
  transition: background 0.5s, box-shadow 0.5s;
}

.display {
  background: #000;
  color: #0ff;
  font-size: 2.5rem;
  text-align: right;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 10px #00f7ff80;
  overflow-x: auto;
  transition: background 0.5s, color 0.5s;
}

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

.btn {
  background: #1a1a1a;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 10px #00f7ff40;
  width: 56px;
  height: 54px;
}

.btn:hover {
  background: #00f7ff33;
  box-shadow: 0 0 15px #00f7ff;
  color: #0ff;
}

.operator {
  color: #ff007c;
}

.equal {
  background: #0ff;
  color: #000;
  font-weight: bold;
}

.zero {
  grid-column: span 2;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle Button */
#theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #0ff;
  color: #000;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #00f7ff80;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

#theme-toggle:hover {
  background: #00f7ff;
}

/* Light Theme */
.light-theme {
  background: linear-gradient(135deg, #f0f0f0, #ffffff);
  color: #000;
}

.light-theme .calculator {
  background-color: #fff;
  box-shadow: 0 0 20px #aaa;
}

.light-theme .display {
  background: #eee;
  color: #333;
  box-shadow: inset 0 0 5px #ccc;
}

.light-theme .btn {
  background: #ddd;
  color: #000;
  box-shadow: 0 0 8px #aaa;
}

.light-theme .btn:hover {
  background: #ccc;
  color: #000;
  box-shadow: 0 0 10px #888;
}

.light-theme .operator {
  color: #e91e63;
}

.light-theme .equal {
  background: #0ff;
  color: #000;
}