
/* ShiftFlow 1.5 – Daily Tools */

.sf-tools {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.sf-tool-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  cursor: pointer;
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-surface) 94%, transparent);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(18px);
  font-size: 18px;
}

.sf-tool-button:hover {
  transform: translateY(-2px);
}

.sf-tool-button.has-alert::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--app-bg-1);
  border-radius: 999px;
  background: #ff657a;
}

.sf-floating-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 121;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--app-border);
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(24px);
  transform: translateY(8px);
  transition:
    opacity 220ms var(--sf-ease),
    transform 280ms var(--sf-ease);
}

.sf-floating-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sf-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--app-border);
}

.sf-panel-head small,
.sf-panel-head strong {
  display: block;
}

.sf-panel-head small {
  color: var(--app-text-faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sf-panel-head strong {
  margin-top: 5px;
  font-size: 20px;
}

.sf-panel-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  cursor: pointer;
  color: var(--app-text);
  background: var(--app-surface-2);
  font-size: 19px;
}

.sf-calculator-display {
  padding: 20px;
}

.sf-calculator-display input {
  width: 100%;
  height: 62px;
  padding: 0 14px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  outline: none;
  color: var(--app-text);
  background: var(--app-input);
  text-align: right;
  font-size: 25px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sf-calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 20px 20px;
}

.sf-calculator-grid button {
  min-height: 48px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  cursor: pointer;
  color: var(--app-text);
  background: var(--app-surface-2);
  font-weight: 800;
}

.sf-calculator-grid button.operator {
  color: white;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

.sf-calculator-grid button.equals {
  grid-column: span 2;
  color: white;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}

.sf-notification-body {
  display: grid;
  gap: 10px;
  max-height: 430px;
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.sf-notification-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-surface-2);
}

.sf-notification-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-b);
  background: var(--app-surface);
}

.sf-notification-item strong,
.sf-notification-item small {
  display: block;
}

.sf-notification-item small {
  margin-top: 5px;
  color: var(--app-text-soft);
  line-height: 1.45;
}

.sf-notification-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--app-text-soft);
}

.sf-notification-actions {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
}

.sf-notification-actions button {
  min-height: 44px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  cursor: pointer;
  color: var(--app-text);
  background: var(--app-surface-2);
  font-weight: 800;
}

.sf-reminder-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 200;
  width: min(460px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(20px);
  transform: translate(-50%, -14px);
  transition:
    opacity 220ms ease,
    transform 280ms var(--sf-ease);
}

.sf-reminder-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sf-reminder-toast strong,
.sf-reminder-toast span {
  display: block;
}

.sf-reminder-toast span {
  margin-top: 5px;
  color: var(--app-text-soft);
}

@media (max-width: 760px) {
  .sf-tools {
    right: 14px;
    bottom: 94px;
  }

  .sf-floating-panel {
    right: 16px;
    bottom: 150px;
  }
}
