<!doctype html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Break Reminder - Team Tracker</title>

    <style>
      body {
        margin: 0;
        padding: 0;
        background: #f5f7fb;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #1e293b;
      }

      .wrapper {
        width: 100%;
        padding: 28px 14px;
        box-sizing: border-box;
      }

      .card {
        max-width: 620px;
        margin: 0 auto;
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #dbe5f2;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
      }

      .header {
        background: linear-gradient(145deg, #f59e0b, #ea580c);
        color: #ffffff;
        text-align: center;
        padding: 28px 22px;
      }

      .header h1 {
        margin: 0;
        font-size: 22px;
      }

      .header p {
        margin: 6px 0 0;
        font-size: 14px;
        opacity: 0.95;
      }

      .body {
        padding: 24px 22px 8px;
      }

      .title {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
      }

      .text {
        margin: 12px 0;
        font-size: 15px;
        line-height: 1.6;
        color: #334155;
      }

      .alert-box {
        background: #fffbeb;
        border: 1px solid #fcd34d;
        border-radius: 12px;
        padding: 14px;
        margin: 18px 0;
      }

      .row {
        display: table;
        width: 100%;
        margin: 6px 0;
      }

      .label {
        display: table-cell;
        width: 130px;
        font-size: 13px;
        color: #64748b;
      }

      .value {
        display: table-cell;
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
      }

      .button-wrap {
        text-align: center;
        margin: 22px 0 18px;
      }

      .button {
        display: inline-block;
        background: #f59e0b;
        color: #ffffff !important;
        text-decoration: none;
        padding: 12px 22px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
      }

      .footer {
        border-top: 1px solid #e2e8f0;
        margin-top: 18px;
        padding: 16px 22px 22px;
        text-align: center;
        font-size: 12px;
        color: #64748b;
      }

      .small {
        font-size: 13px;
        color: #475569;
      }

      @media screen and (max-width: 620px) {
        .label {
          width: 110px;
        }
      }
    </style>
  </head>

  <body>
    <div class="wrapper">
      <div class="card">
        <!-- HEADER -->
        <div class="header">
          <h1>Break Reminder</h1>
          <p>You've been on break for a long time</p>
        </div>

        <!-- BODY -->
        <div class="body">
          <p class="title">Hello, {{name}}</p>

          <p class="text">
            Our system noticed that you have been on a break for quite some
            time. Please end your break if you have returned to work.
          </p>

          <div class="alert-box">
            <div class="row">
              <span class="label">Break Started</span>
              <span class="value">{{breakStartTime}}</span>
            </div>

            <div class="row">
              <span class="label">Duration</span>
              <span class="value">{{breakDuration}} minutes</span>
            </div>

            <div class="row">
              <span class="label">Status</span>
              <span class="value">Break Ongoing</span>
            </div>
          </div>

          <p class="text small">
            Ending your break helps keep your attendance record accurate.
          </p>

          <div class="button-wrap">
            <a
              class="button"
              href="{{dashboard}}"
              target="_blank"
              rel="noopener noreferrer"
            >
              End Break Now
            </a>
          </div>

          <p class="text small">
            If you're still on break, you can ignore this message.
          </p>
        </div>

        <!-- FOOTER -->
        <div class="footer">
          This is an automated message from Team Tracker Attendance System.
        </div>
      </div>
    </div>
  </body>
</html>
