    * { box-sizing: border-box; margin: 0; padding: 0; }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .container {
      background: white;
      border-radius: 20px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.1);
      padding: 40px;
      width: 100%;
      max-width: 400px;
      text-align: center;
    }

    .title {
      font-size: 24px;
      font-weight: bold;
      color: #333;
      margin-bottom: 10px;
    }

    .subtitle {
      color: #666;
      margin-bottom: 40px;
      font-size: 14px;
    }

    .user-card {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 30px;
      font-size: 14px;
      color: #555;
      position: relative;
    }

    .server-total-card {
      background: linear-gradient(135deg, #4cd3a6 0%, #35c094 100%);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 30px;
      color: white;
      box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    .server-total-title {
      font-size: 14px;
      margin-bottom: 10px;
      opacity: 0.9;
    }

    .server-total-number {
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .server-total-subtitle {
      font-size: 12px;
    }

    .server-total-loading {
      opacity: 0.7;
      font-style: italic;
    }

    .stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 40px;
    }

    .stat {
      text-align: center;
    }

    .stat-number {
      font-size: 32px;
      font-weight: bold;
      color: #667eea;
      display: block;
    }

    .stat-label {
      font-size: 12px;
      color: #888;
      margin-top: 5px;
    }

    .input-section {
      margin-bottom: 30px;
    }

    .custom-input {
      width: 100%;
      padding: 15px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 16px;
      text-align: center;
      margin-bottom: 20px;
    }

    .custom-input:focus {
      outline: none;
      border-color: #667eea;
    }

    .submit-btn {
      width: 100%;
      padding: 15px;
      background: #667eea;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s;
    }

    .submit-btn:hover:not(:disabled) {
      background: #5a67d8;
      transform: translateY(-2px);
    }

    .submit-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }

    .history-toggle {
      margin-top: 30px;
      padding: 10px;
      background: none;
      border: 1px solid #ddd;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      color: #666;
    }

    .history-section {
      display: none;
      margin-top: 20px;
    }

    .history-section.show {
      display: block;
    }
    
    .chart-section {
      margin-bottom: 20px;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
    }
    
    .chart-controls {
      margin-bottom: 15px;
    }
    
    .chart-date-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: center;
    }
    
    .chart-date-controls label {
      font-size: 12px;
      color: #666;
      margin: 0;
    }
    
    .chart-date-controls input[type="date"] {
      padding: 5px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 12px;
    }
    
    .chart-date-controls button {
      padding: 6px 10px;
      background: #667eea;
      color: white;
      border: none;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .chart-date-controls button:hover {
      background: #5a67d8;
    }
    
    .chart-container {
      height: 250px;
      position: relative;
    }

    .history-filters {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
      align-items: center;
      flex-wrap: wrap;
    }

    .filter-select {
      padding: 8px 12px;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 12px;
      background: white;
    }

    .filter-select:focus {
      outline: none;
      border-color: #667eea;
    }

    /* Enhanced Page Size Selector */
    .page-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      padding: 10px;
      background: #f8f9fa;
      border-radius: 8px;
      font-size: 12px;
    }

    .page-size-selector {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .page-size-selector label {
      color: #666;
      font-weight: 500;
    }

    .page-size-selector select {
      padding: 4px 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 12px;
      background: white;
    }

    .total-info {
      color: #667eea;
      font-weight: 600;
    }

    .history-list {
      max-height: 300px;
      overflow-y: auto;
      border: 1px solid #f0f0f0;
      border-radius: 8px;
      margin-bottom: 15px;
    }

    .history-item {
      display: flex;
      justify-content: space-between;
      padding: 12px;
      border-bottom: 1px solid #f0f0f0;
      font-size: 13px;
    }

    .history-item:last-child {
      border-bottom: none;
    }

    .history-item:nth-child(even) {
      background: #fafafa;
    }

    .history-date {
      color: #888;
      flex: 1;
    }

    .history-minutes {
      font-weight: bold;
      color: #667eea;
      margin-left: 10px;
    }

    /* User Selection List */
    .user-selection-list {
      max-height: 300px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .user-selection-item {
      padding: 12px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      margin-bottom: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: #f9f9f9;
    }

    .user-selection-item:hover {
      background: #f0f4ff;
      border-color: #667eea;
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
    }

    .user-selection-item.active {
      background: #e3f2fd;
      border-color: #2196f3;
    }

    .user-selection-name {
      font-weight: bold;
      color: #333;
      margin-bottom: 4px;
    }

    .user-selection-details {
      font-size: 13px;
      color: #666;
    }

    /* Enhanced Pagination Styles */
    .pagination-container {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 15px;
      margin-top: 10px;
    }

    .pagination {
      display: flex;
      justify-content: center;
      gap: 5px;
      margin-bottom: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .pagination button {
      padding: 8px 12px;
      border: 1px solid #ddd;
      background: white;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.2s;
      min-width: 36px;
    }

    .pagination button:hover:not(:disabled) {
      background: #f5f5f5;
      border-color: #667eea;
    }

    .pagination button:disabled {
      background: #f9f9f9;
      color: #ccc;
      cursor: not-allowed;
    }

    .pagination button.active {
      background: #667eea;
      color: white;
      border-color: #667eea;
    }

    .pagination-info {
      text-align: center;
      font-size: 11px;
      color: #888;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid #eee;
    }

    .modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .modal-content {
      background: white;
      border-radius: 12px;
      padding: 30px;
      width: 90%;
      max-width: 350px;
    }

    .form-group {
      margin-bottom: 20px;
      text-align: left;
    }

    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: 600;
      color: #333;
    }

    .form-group input, .form-group select {
      width: 100%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 14px;
    }

    .form-group input:focus, .form-group select:focus {
      outline: none;
      border-color: #667eea;
    }

    .error-message {
      color: #ef4444;
      font-size: 12px;
      margin-top: 5px;
      display: none;
    }
    
    .user-selector {
      margin-bottom: 20px;
    }

    .user-selector label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #333;
      font-size: 14px;
    }

    .user-select {
      width: 70%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      margin-right: 10px;
    }

    .user-display {
      width: 70%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 14px;
      margin-right: 10px;
      background: #f9f9f9;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .user-display:hover {
      border-color: #667eea;
      background: #f0f4ff;
    }

   .add-user-btn {
      width: 25%;
      padding: 12px 8px;
      background: linear-gradient(135deg, #4ade80, #22c55e); /* green gradient */
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: white;
      transition: all 0.25s ease;
      box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
    }

    .change-user-btn {
      width: 25%;
      padding: 12px 8px;
      background: linear-gradient(135deg, #667eea, #764ba2); /* purple gradient */
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: white;
      transition: all 0.25s ease;
      box-shadow: 0 2px 6px rgba(102, 126, 234, 0.35);
    }

    .change-user-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.45);
    }

    .add-user-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(34, 197, 94, 0.45);
    }



    .goal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 6px 4px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }

  .goal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }

  .button-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  border: 1.5px solid #7c3aed;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 
    0 1px 3px rgba(139, 69, 193, 0.3),
    0 1px 2px rgba(139, 69, 193, 0.2);
}

.button-secondary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: #6d28d9;
  color: #ffffff;
  box-shadow: 
    0 2px 6px rgba(139, 69, 193, 0.4),
    0 1px 3px rgba(139, 69, 193, 0.3);
}

.button-secondary:focus {
  outline: none;
  box-shadow: 
    0 2px 6px rgba(139, 69, 193, 0.15),
    0 0 0 3px rgba(139, 69, 193, 0.3);
}


  .goal-modal {
    display: none;
    position: fixed;
    padding: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  .goal-content {
    background: white;
    max-height: 90vh;
    padding: 12px;
    border-radius: 10px;
    max-width: 450px;
    width: 95%;
    text-align: center;
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 8px -5px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  #goalContainer {
    max-height: 450px;
    padding: 6px;
    margin: 6px 0 10px 0;
    border-radius: 6px;
  }

    @media (max-width: 480px) {
      .container {
        padding: 30px 20px;
        margin: 10px;
      }
      
      .stats {
        gap: 15px;
      }
      
      .stat-number {
        font-size: 28px;
      }
      
      .history-filters {
        flex-direction: column;
        gap: 8px;
      }

      .filter-select {
        width: 100%;
      }

      .page-controls {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }

      .pagination {
        flex-wrap: wrap;
        gap: 3px;
      }

      .pagination button {
        padding: 6px 10px;
        min-width: 32px;
      }


    }