@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
  background: #18171d;
  color: #f5f5f5;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container {
  /* max-width: 500px; */ /* Remove or comment out this line */
  /* margin: 60px auto; */ /* Remove or comment out this line */
  background: #2d2e3a;
  border-radius: 24px;
  box-shadow: 0 4px 24px #0008;
  padding: 48px 40px 32px 40px;
  text-align: center;
  min-width: 600px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Add this line */
}
.timer-title {
  font-size: 1.6em;
  margin-bottom: 24px;
  font-weight: 500;
  font-weight: 600;
}
.timer {
  font-size: 5em;
  margin: 0 0 24px 0;
  letter-spacing: 8px;
  line-height: 1.1;
  font-weight: bold;
}

.timer-green {
  color: #7ed957;
  text-shadow: 0 0 20px rgba(126, 217, 87, 0.5);
  animation: pulse-green 1s ease-in-out infinite alternate;
}

@keyframes pulse-green {
  from {
    text-shadow: 0 0 20px rgba(126, 217, 87, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(126, 217, 87, 0.8);
  }
}
.recorde {
  font-size: 1.5em;
  margin-bottom: 32px;
  font-weight: 600;
}
.recorde-valor {
  color: #7ed957;
  font-weight: bold;
  font-size: 1.1em;
}
button {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  font-weight: 500;
  letter-spacing: 1px;
}
button:hover {
  background: #388e3c;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
th, td {
  border: 1px solid #333;
  padding: 8px;
  text-align: left;
}
th {
  background: #333;
}
td {
  background: #222;
  font-size: 0.98em;
}
.emotes-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* Logs accordion styles */
.logs-container {
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar styling */
.logs-container::-webkit-scrollbar {
  width: 8px;
}

.logs-container::-webkit-scrollbar-track {
  background: #1e1f2b;
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
  background: #3a3b4a;
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
  background: #4caf50;
}

.log-card {
  background: #1e1f2b;
  border: 1px solid #3a3b4a;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.log-card:hover {
  border-color: #4caf50;
}

.log-card.record {
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #1e1f2b 0%, #2d2a1f 50%, #1e1f2b 100%);
  position: relative;
  overflow: hidden;
}

.log-card.record::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

.log-card.record .log-header {
  background: linear-gradient(135deg, #3d3520 0%, #252633 50%, #3d3520 100%);
}

.log-card.record .log-header:hover {
  background: linear-gradient(135deg, #4a4025 0%, #2a2b38 50%, #4a4025 100%);
}

.log-card.record .log-count {
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ffd700 100%);
  color: #1e1f2b;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  animation: pulse-record 2s ease-in-out infinite alternate;
}

@keyframes pulse-record {
  from {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  }
  to {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
  }
}

.log-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #252633;
  transition: background 0.3s ease;
}

.log-header:hover {
  background: #2a2b38;
}

.log-header.active {
  background: #2d2e3a;
  border-bottom: 1px solid #3a3b4a;
}

.log-date {
  font-size: 1.2em;
  font-weight: 600;
  color: #f5f5f5;
}

.log-count {
  background: #7ed957;
  color: #1e1f2b;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
}

.log-arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
  color: #888;
}

.log-arrow.rotated {
  transform: rotate(180deg);
}

.log-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.log-content.expanded {
  max-height: 500px;
}

.log-details {
  padding: 20px;
  background: #1a1b26;
}

.log-details h4 {
  margin: 0 0 12px 0;
  color: #7ed957;
  font-size: 1.1em;
}

.users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-tag {
  background: #3a3b4a;
  color: #f5f5f5;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.9em;
  font-weight: 500;
}

.log-stats {
  margin-bottom: 16px;
  padding: 12px;
  background: #252633;
  border-radius: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-label {
  color: #888;
}

.stat-value {
  color: #7ed957;
  font-weight: 600;
}

.log-notes {
  margin-bottom: 16px;
}

.log-notes h4 {
  margin: 0 0 8px 0;
  color: #7ed957;
  font-size: 1.1em;
}

.notes-text {
  background: #252633;
  padding: 12px;
  border-radius: 8px;
  margin: 0;
  color: #f5f5f5;
  font-style: italic;
  line-height: 1.4;
  border-left: 3px solid #7ed957;
}

/* 88x31 button styling */
.web-button {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 88px;
  height: 31px;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.web-button img {
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.3s ease;
}

.web-button:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 4px 16px rgba(126, 217, 87, 0.4);
}

.web-button:hover img {
  filter: brightness(1.2) saturate(1.3);
}

.web-button:active {
  transform: scale(0.95) rotate(-1deg);
}

/* Audio toggle icon */
.audio-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: #2196f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.audio-toggle:hover {
  background: #1976d2;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.audio-toggle.enabled {
  background: #4caf50;
  border-color: rgba(76, 175, 80, 0.3);
}

.audio-toggle.enabled:hover {
  background: #388e3c;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.audio-toggle.muted {
  background: #9e9e9e;
  border-color: rgba(158, 158, 158, 0.3);
}

.audio-toggle.muted:hover {
  background: #757575;
  box-shadow: 0 4px 12px rgba(158, 158, 158, 0.4);
}

.audio-toggle.error {
  background: #f44336;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}