body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
}

.container {
  max-width: 500px;
  margin: 50px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 120px;
    margin: 25px auto;
}

img.logo {
	width:30%;
	border-radius: 999px; 
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  padding: 10px 15px;
  border: none;
  background: #4CAF50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #45a049;
}

.streak-info {
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.clear-button{
  text-align: right;
}

/* Habits List */
.habits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.habit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #e3f2fd;
  border-radius: 5px;
  transition: 0.2s ease;
  cursor: pointer;
}
.habit:hover {
  transform: scale(1.02);
}

.habit input{
  flex: 0;
}

.habit span {
  flex: 1;
  margin-left: 10px;
}

.habit button {
  background: red;
  padding: 5px 10px;
}

.habit.done {
  background-color: #d4edda;
  border-left: 5px solid #28a745;
  transition: 0.2s ease;
}

.habit.done span:not(.tooltip, .streak, .tooltip-text) {
  text-decoration: line-through;
  color: #555;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);

  background-color: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;

  transition: opacity 0.2s ease;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.app-footer {
  margin-top: 30px;
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  letter-spacing: 0.3px;
}
.version-badge {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 0.75rem;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.7;
}

/* Dark Mode Styles */
#darkModeToggle {
  transition: transform 0.3s ease;
}

#darkModeToggle:active {
  transform: scale(0.95);
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode img.logo{
	background-color:#2a2a2a;
}

input,
button {
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

body.dark-mode {
  background-color: #121212;
  color: #eaeaea;
}

body.dark-mode .container {
  background-color: #1e1e1e;
}

body.dark-mode input,
body.dark-mode button {
  background-color: #2a2a2a;
  color: #fff;
  
}

body.dark-mode .habit span{
  color:#000;
}

body.dark-mode .tooltip-text {
  color:#fff !important;
}