:root {
  --primary-color: #4a90e2;
  --secondary-color: #50c878;
  --danger-color: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-text: #333;
  --light-text: #f8f9fa;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.task-item:last-child {
  border-bottom: none;
}

.task-info h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.task-info p {
  color: #666;
  font-size: 0.9em;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.btn-success {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-danger {
  background-color: var(--danger-color);
  color: var(--light-text);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.sync-status {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
}

.sync-status.online {
  background-color: rgba(80, 200, 120, 0.2);
  color: var(--secondary-color);
}

.sync-status.offline {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
}

.sync-status span {
  margin-left: 10px;
  font-weight: bold;
}

.hidden {
  display: none;
}

/* Login form */
.login-form {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 102%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #3a7bc8;
}

.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: #666;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .task-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .task-actions {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}

/* UX MOVIL*/

.task-card {
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  margin-bottom: 14px;
}

.task-actions button {
  width: 100%;
  height: 56px;
  font-size: 1.1rem;
}

.task-item.active .task-card {
  border-left: 6px solid #22c55e;
  background: #f0fff4;
}

.task-item.active .task-title {
  font-weight: 700;
}

.task-item.active .session-time {
  font-size: 1.4rem;
  font-weight: 700;
  color: #16a34a;
}

.task-item:not(.active) {
  opacity: 0.75;
}

.task-card {
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.task-item.active .task-card {
  transform: scale(1.02);
}

.floating {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating.hidden {
  opacity: 0;
  transform: translate(-50%, 20px);
}

@media (max-width: 768px) {

  .task-card {
    padding: 12px;
  }

  .task-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .task-info p {
    font-size: 0.8rem;
    margin: 2px 0;
  }

}

@media (max-width: 768px) {

  .session-time {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 6px 0;
  }

  .task-item.active .session-time {
    color: #16a34a;
  }

}

@media (max-width: 768px) {

  .task-info p {
    display: none;
  }

  .task-item.active .task-info p {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
  }

}

@media (max-width: 768px) {

  body.focus-mode .task-item.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #ffffff;
    padding: 20px;
    overflow-y: auto;
  }

}

@media (max-width: 768px) {

  .task-actions button {
    width: 100%;
    height: 52px;
    font-size: 1.1rem;
    border-radius: 14px;
  }

}

@media (max-width: 768px) {

  .task-item:not(.expanded) .task-info p {
    display: none;
  }

}

.hidden {
  display: none;
}
