/* ==========================================================================
   MOBILE SPECIFIC STYLES (< 576px)
   ========================================================================== */
@media (width < 576px) {
  /* --- Layout & Container --- */
  .container {
    width: 100%;
    border: none;
    padding: 20px 10px;
    border-radius: 0; /* Full width on mobile */
  }

  .main-title {
    margin-bottom: 15px;
  }

  /* --- Forms & Inputs --- */
  .input-section {
    padding: 12px;
  }

  .time-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* --- Lists & Entries --- */
  .times-list,
  .time-entry-content {
    padding: 12px;
  }

  .time-entry {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 6px;
  }

  .time-entry-time {
    margin-left: 0;
    align-self: flex-end;
  }

  /* Hide inline edit/delete buttons on mobile (replaced by swipe) */
  .edit-btn,
  .delete-btn {
    display: none;
  }

  /* --- Swipe Actions --- */
  .swipe-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }

  .swipe-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    transform: scale(0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  }

  /* Delete Background (Left) */
  .swipe-bg-delete {
    padding-left: 24px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.85) 0%, rgba(200, 30, 20, 0.85) 100%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
  }

  /* Edit Background (Right) */
  .swipe-bg-edit {
    padding-right: 12px;
    justify-content: flex-end;
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.85) 0%, rgba(0, 122, 255, 0.85) 100%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
  }

  /* Active state when swipe threshold is reached (Intensifies colors) */
  .swipe-bg.active.swipe-bg-delete {
    background: linear-gradient(135deg, rgba(255, 59, 48, 1) 0%, rgba(220, 30, 20, 1) 100%) !important;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.15) !important;
  }

  .swipe-bg.active.swipe-bg-edit {
    background: linear-gradient(135deg, rgba(88, 86, 214, 1) 0%, rgba(0, 122, 255, 1) 100%);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.15);
  }

  .swipe-bg.active .swipe-icon {
    transform: scale(1.15);
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  }
}