/* Main styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Form elements */
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
}

button {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  margin-top: 8px;
}

button:hover {
  background-color: #3367d6;
}

/* Edit and Delete Buttons */
.edit-btn {
  background-color: #34a853;
}

.edit-btn:hover {
  background-color: #2d9047;
}

.delete-btn {
  background-color: #ea4335;
}

.delete-btn:hover {
  background-color: #d33426;
}

.cancel-btn {
  background-color: #9aa0a6;
}

.cancel-btn:hover {
  background-color: #80868b;
}

.save-btn {
  background-color: #34a853;
}

.save-btn:hover {
  background-color: #2d9047;
}

/* Edit Form */
.edit-form {
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.edit-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.edit-field textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

/* Components */
#checkin-form {
  margin-top: 2rem;
}

/* Edit mode styling */
#checkin-form.edit-mode {
  background-color: #f0f8ff;
  border: 1px solid #abd4ff;
  border-radius: 8px;
  padding: 20px;
}

#session-warning {
  background: #ffeed1;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  margin-top: 20px;
  display: none;
}

#submitStatus {
  margin-top: 10px;
  font-weight: bold;
}

#checkinList {
  margin-top: 20px;
  padding-left: 20px;
}

#user {
  font-weight: bold;
}

/* Checkin entries */
.checkin-entry {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.checkin-date {
  font-weight: bold;
  color: #4285f4;
}

.checkin-content {
  margin-top: 5px;
  white-space: pre-wrap;
  font-family: monospace;
  background: #fff;
  padding: 12px;
  border-radius: 4px;
}

.checkin-section {
  margin-bottom: 12px;
}

.checkin-section-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 3px;
  color: #1976d2;
}

.checkin-section-value {
  margin-left: 8px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  color: #444;
}

/* Copy buttons */
.copy-button {
  background-color: #34a853;
  font-size: 0.8em;
}

.copy-button:hover {
  background-color: #2e8b57;
}

/* Google Sign-in button */
.google-btn {
  display: flex;
  align-items: center;
  background-color: white;
  color: #757575;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 220px;
}

.google-btn:hover {
  background-color: #f5f5f5;
}

.google-btn img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

/* Loading spinner */
.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

.loading-message {
  text-align: center;
  color: #555;
  font-size: 16px;
  margin-top: 10px;
}

/* Modern check-in card styles */
.checkin-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin: 18px 0;
  padding: 18px 22px 14px 22px;
  transition: box-shadow 0.2s;
}

.checkin-container:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.checkin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkin-date {
  font-weight: 600;
  font-size: 1.1rem;
  color: #222;
  letter-spacing: 0.01em;
}

.copy-btn, .delete-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  margin-left: 8px;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy-btn {
  background: #f3f3f3;
  color: #333;
}

.copy-btn:hover {
  background: #e0e0e0;
}

.delete-btn {
  background: #ffeded;
  color: #d32f2f;
  font-weight: 600;
}

.delete-btn:hover {
  background: #ffbdbd;
  color: #b71c1c;
}

/* Add to your stylesheet */
.checkin-index-list {
  margin: 0 0 18px 0;
  padding: 0;
}
.checkin-index-item {
  margin-bottom: 8px;
  font-size: 1rem;
}
.checkin-index-item a {
  color: #1976d2;
  text-decoration: none;
  transition: color 0.15s;
}
.checkin-index-item a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.checkin-index-date {
  font-weight: bold;
  color: #1976d2;
  margin-top: 16px;
  margin-bottom: 2px;
  font-size: 1.07em;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
}
.checkin-index-date:hover {
  color: #0d47a1;
}

.checkin-index-entries {
  list-style: none;
  margin: 0 0 8px 12px;
  padding: 0;
}
.checkin-index-entry {
  font-size: 0.98em;
  color: #444;
  margin-bottom: 2px;
  white-space: pre-line;
}

#checkinGroups,
#checkin-form {
  display: none;
}

/* Copy all button */
.copy-all-btn {
  background: #21936a;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  margin: 18px 0 18px 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(33, 147, 106, 0.08);
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
  letter-spacing: 0.2px;
  display: inline-block;
  width: auto;
  max-width: 200px;
  margin-left: 0;
  margin-right: 0;
}

.copy-all-btn:hover {
  background: #17694b;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 8px rgba(33, 147, 106, 0.13);
}