/* tracker.css - UI for Deijs Tracker App */
:root {
  --primary: #0086ff;       /* Updated blue from your buttons */
  --secondary: #ff4dd2;     /* Vibrant pink */
  --accent: #fff36f;        /* Soft yellow accent */
  --bg: #f0f4f9;
  --white: #fff;
  --text: #2c3e50;
  --gray: #8c9ea9;
  --radius: 12px;
  --shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.card:hover {
  transform: scale(1.01);
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.button:hover {
  background: var(--secondary);
  box-shadow: var(--shadow);
}
.button.secondary {
  background: var(--accent);
  color: var(--primary);
}
.button.full-width {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin: 10px 0 20px;
  font-size: 16px;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 0.5rem 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.task:hover {
  background: #eef6ff;
  transform: translateY(-2px);
}

.task .title {
  font-weight: 600;
  font-size: 16px;
}
.task .meta {
  color: var(--gray);
  font-size: 13px;
}

.section-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 20px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.upload-box {
  background: var(--accent);
  border: 2px dashed var(--primary);
  padding: 30px;
  text-align: center;
  border-radius: var(--radius);
  transition: var(--transition);
}
.upload-box:hover {
  background: #e6f3ff;
}

footer {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  margin-top: 3rem;
}

@media (max-width: 480px) {
  .task {
    flex-direction: column;
    align-items: flex-start;
  }
  .task .meta {
    margin-top: 0.5rem;
  }
}/* === Overdue Task Glow === */
.task.overdue::after {
  content: "🔔";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  animation: pulse 1.5s infinite;
  color: red;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}
.task.overdue {
  border-left: 5px solid red;
  position: relative;
}

/* === Scroll Snap === */
.task-scroll-container {
  max-height: 90vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
}
.task-scroll-container .task {
  scroll-snap-align: start;
  margin-bottom: 12px;
}

/* === Click Animation === */
.clicked {
  transform: scale(0.95);
  transition: transform 0.1s ease-in-out;
}

/* === Scroll Reveal === */
.task {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.task.visible {
  opacity: 1;
  transform: translateY(0);
}.avatars {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}.avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
}

.bottom-bar .nav-btn {
  padding: 6px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bottom-bar .nav-btn:hover {
  background-color: var(--accent);
  transform: scale(1.1);
}

.bottom-bar .nav-btn:active {
  transform: scale(0.95);
  background-color: var(--secondary);
}

.bottom-bar .nav-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}