
:root {
  --header-bg: linear-gradient(135deg, #4CAF50, #2E7D32);
  --header-text: white;
  --box-bg: white;
  --body-bg: #f5f7fa;
  --text-color: #333;
}

body.dark-mode {
  --header-bg: linear-gradient(135deg, #1a1a1a, #333);
  --header-text: #f5f5f5;
  --box-bg: #222;
  --body-bg: #121212;
  --text-color: #eee;
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--body-bg);
  color: var(--text-color);
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid #ddd;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: auto;
}


.container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: var(--box-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

input {
  padding: 10px;
  width: 70%;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

button {
  padding: 10px 15px;
  margin-left: 5px;
  border: none;
  border-radius: 6px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #388E3C;
}


#result {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: var(--box-bg);
  min-height: 80px;
  max-height: none;
  overflow-y: auto;
  text-align: left;
}


.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  content: "🌗";             
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  font-size: 18px;
  transition: 0.4s;
}

.toggle-switch input:checked + .slider {
  background-color: #4CAF50;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(30px);
  content: "🌗";  
}


footer {
 text-align: center;
  font-size: 0.9rem;
  color: gray;
  margin: 30px 0 10px;
}
