/* ==========================================================================
   Kiosk Mode (High-Density Touch Panel) Styles - Green Theme
   ========================================================================== */

.kiosk-container {
  padding: 1rem 1.5rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Kiosk Top Controls Banner */
.kiosk-toolbar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kiosk-search-box {
  flex: 1;
  min-width: 220px;
}

.kiosk-search-input {
  width: 100%;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-color);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.kiosk-search-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.kiosk-filters {
  display: flex;
  gap: 6px;
}

.kiosk-filter-chip {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.kiosk-filter-chip.active {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* Ultra High-Density Name Card Grid */
.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.65rem;
}

/* Minimal Compact Name Button */
.user-name-btn {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.6rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: center;
  user-select: none;
}

.user-name-btn:hover, .user-name-btn:active {
  transform: scale(1.04);
  box-shadow: var(--shadow-kiosk);
  border-color: var(--primary-600);
  z-index: 2;
}

/* Status variants */
.user-name-btn.working {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #34d399;
}

.user-name-btn.working .user-name-title {
  color: #047857;
  font-weight: 800;
}

.user-name-btn.off {
  background: #ffffff;
  border-color: var(--border-color);
}

.user-name-btn.off .user-name-title {
  color: #374151;
}

.user-status-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

.user-name-btn.working .user-status-indicator {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.user-name-kana-sub {
  font-size: 0.68rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-name-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  word-break: break-all;
}

/* Modal for Clock Action */
.clock-modal-body {
  text-align: center;
}

.clock-user-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-700);
  margin-bottom: 0.25rem;
}

.clock-user-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.touch-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.touch-btn {
  height: 100px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-md);
}

.touch-btn:active {
  transform: scale(0.95);
}

.touch-btn-in {
  background: linear-gradient(135deg, #10b981, #059669);
}

.touch-btn-out {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}
