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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  min-height: 100vh;
  padding: 20px;
}

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

.section {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Auth Section */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.auth-container h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Header */
header {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
  color: #2193b0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info span {
  font-weight: 600;
  color: #4a5568;
}

/* Form Card */
.form-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  max-width: 500px;
  width: 100%;
}

#app-section .form-card {
  max-width: 100%;
}

.form-card h2 {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2193b0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #2193b0;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: #1a7a94;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(33, 147, 176, 0.4);
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-danger {
  background: #f56565;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-danger:hover {
  background: #e53e3e;
}

.switch-form {
  text-align: center;
  margin-top: 1rem;
  color: #718096;
}

.switch-form a {
  color: #2193b0;
  text-decoration: none;
  font-weight: 600;
}

.switch-form a:hover {
  text-decoration: underline;
}

/* Entries Section */
.entries-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.entries-section h2 {
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.overall-total-summary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 6px 16px rgba(245, 87, 108, 0.3);
}

.overall-total-summary h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.95;
}

.overall-total-hours {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

.overall-total-days {
  font-size: 1.1rem;
  opacity: 0.95;
}

.month-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
}

.month-tab {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #4a5568;
  transition: all 0.3s;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.month-tab:hover {
  border-color: #2193b0;
  color: #2193b0;
  transform: translateY(-2px);
}

.month-tab.active {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  color: white;
  border-color: #2193b0;
  box-shadow: 0 4px 8px rgba(33, 147, 176, 0.3);
}

.month-tab .tab-hours {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

#entries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.total-hours-summary {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(33, 147, 176, 0.3);
}

.total-hours-summary h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.95;
}

.total-hours {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.total-entries {
  font-size: 1rem;
  opacity: 0.9;
}

.entry-card {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.entry-card:hover {
  border-color: #2193b0;
  transform: translateX(5px);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.entry-date {
  font-weight: 600;
  color: #2d3748;
  font-size: 1.1rem;
}

.entry-time {
  color: #2193b0;
  font-weight: 600;
  font-size: 1.1rem;
}

.entry-duration {
  color: #48bb78;
  font-weight: 600;
  margin-left: 1rem;
}

.entry-break {
  color: #ed8936;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.entry-description {
  color: #718096;
  margin-bottom: 1rem;
}

.entry-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit {
  background: #4299e1;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-edit:hover {
  background: #3182ce;
}

.btn-save {
  background: #48bb78;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-save:hover {
  background: #38a169;
}

.btn-cancel {
  background: #a0aec0;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-cancel:hover {
  background: #718096;
}

.edit-input {
  padding: 0.5rem;
  border: 2px solid #2193b0;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
  margin-top: 0.25rem;
}

.edit-input-small {
  width: 80px;
  display: inline-block;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #a0aec0;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 1000;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background: #48bb78;
}

.notification.error {
  background: #f56565;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .entry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .month-tabs {
    flex-direction: column;
  }
  
  .month-tab {
    min-width: auto;
  }
}
