/* Admin bar widget */
#wpadminbar .awd-ttt-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#wpadminbar .awd-ttt-btn {
  border: 0;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.8;
}

#wpadminbar .awd-ttt-start {
  background: #00a32a; /* WP green */
  color: #fff;
}

#wpadminbar .awd-ttt-stop {
  background: #d63638; /* WP red-ish */
  color: #fff;
}

#wpadminbar .awd-ttt-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Modal */
.awd-ttt-hidden { display: none !important; }

#awd-ttt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 99998;
  pointer-events: auto;
  /* allow clicking backdrop (and prevent clicks passing through to the page) */
}


#awd-ttt-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: auto;
  /* do NOT disable pointer events on the overlay; it can break <select> interactions in some browsers */
}


.awd-ttt-modal-inner {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: min(560px, calc(100% - 40px));
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


.awd-ttt-modal-header {
  cursor: move;
  user-select: none;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
}

.awd-ttt-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.awd-ttt-modal-body {
  padding: 16px;
}

.awd-ttt-meta {
  margin: 0 0 14px;
  color: #50575e;
}

.awd-ttt-meta-sep { margin: 0 8px; }

.awd-ttt-label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

.awd-ttt-field {
  width: 100%;
}

.awd-ttt-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
}

/* Floating timer widget */
.awd-ttt-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 220px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  z-index: 99997;
  overflow: hidden;
}

.awd-ttt-float-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f6f7f7;
  border-bottom: 1px solid #dcdcde;
  cursor: move;
  user-select: none;
}

.awd-ttt-float-body {
  padding: 10px 12px;
}

.awd-ttt-float-time {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.awd-ttt-float-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.awd-ttt-hidden { display:none; }


/* When JS positions the modal with left/top, disable transform-centering */
.awd-ttt-modal-inner.awd-ttt-modal-manual {
  transform: none !important;
}
