/**
 * Estilos PWA - Reloj Fichaje
 * Employee Management Pro
 */

* {
  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, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.emp-clock-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}

.emp-clock-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.emp-clock-header h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.emp-current-time {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
  font-variant-numeric: tabular-nums;
}

.emp-current-date {
  font-size: 16px;
  opacity: 0.9;
}

.emp-clock-body {
  padding: 40px 30px;
}

.emp-status-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.emp-status-label {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
}

.emp-status-value {
  font-size: 32px;
  font-weight: bold;
  color: #28a745;
}

.emp-status-value.clocked-out {
  color: #dc3545;
}

.emp-clock-button {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.emp-clock-in-btn {
  background: #28a745;
  color: white;
}

.emp-clock-in-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.emp-clock-out-btn {
  background: #dc3545;
  color: white;
}

.emp-clock-out-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.emp-pause-btn {
  background: #ffc107;
  color: #212529;
}

.emp-pause-btn:hover {
  background: #e0a800;
}

.emp-resume-btn {
  background: #17a2b8;
  color: white;
}

.emp-resume-btn:hover {
  background: #138496;
}

.emp-today-summary {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #dee2e6;
}

.emp-today-summary h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.emp-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.emp-summary-label {
  color: #6c757d;
}

.emp-summary-value {
  font-weight: bold;
  color: #333;
}

.emp-error-message,
.emp-success-message {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}

.emp-error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.emp-success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.emp-loading {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.emp-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .emp-current-time {
    font-size: 36px;
  }

  .emp-clock-body {
    padding: 30px 20px;
  }
}

/* OFFLINE INDICATOR */
.emp-offline-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.emp-offline-indicator.hidden {
  display: none;
}
