/* Global Styles */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 30px;
    color: #333;
  }
  
  /* Page Title */
  h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    color: #222;
  }
  
  /* Section Wrapper */
  .section {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  
  /* Section Titles */
  h2 {
    margin-top: 0;
    color: #0078d7;
    font-size: 20px;
    border-bottom: 2px solid #0078d7;
    padding-bottom: 8px;
    font-weight: 600;
  }
  
  /* Tables */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
  }
  
  th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 14px;
  }
  
  th {
    background: #0078d7;
    color: #fff;
    font-weight: 600;
  }
  
  tr:nth-child(even) {
    background: #f9f9f9;
  }
  
  tr:hover {
    background: #eef6ff;
    transition: background 0.2s ease-in-out;
  }
  
  /* Buttons */
  button {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s ease;
  }
  
  button:hover {
    background: #005fa3;
  }
  
  /* Overlay for modal */
  #overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }
  
 /* Dialog Box */
#userDialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 260px;                 /* smaller width */
    background: #fff;
    padding: 15px;                /* reduced padding */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translate(-50%, -50%);
    z-index: 1000;
    cursor: move;
  }
  
  /* Dialog Title */
  #userDialog h3 {
    margin-top: 0;
    color: #0078d7;
    font-size: 16px;              /* smaller font */
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
  }
  
  /* Labels */
  #userDialog label {
    display: block;
    margin-bottom: 8px;           /* tighter spacing */
    font-size: 13px;
    color: #444;
  }
  
  /* Inputs & Dropdown */
  #userDialog input, 
  #userDialog select {
    width: 100%;
    padding: 6px 8px;             /* smaller padding */
    margin-top: 3px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
  }
  
  /* Buttons inside dialog */
  #userDialog button {
    margin-top: 10px;
    margin-right: 6px;
    padding: 6px 12px;            /* compact buttons */
    font-size: 13px;
    border-radius: 5px;
  }
  /* Style for date inputs inside table */
#userSubsTable input[type="date"] {
  width: 140px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  background-color: #fdfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#userSubsTable input[type="date"]:focus {
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0,120,215,0.4);
  outline: none;
}

/* Status labels */
.status-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.status-label.active {
  background-color: #e6f4ea;
  color: #2e7d32; /* green */
  border: 1px solid #2e7d32;
}

.status-label.expired {
  background-color: #fdecea;
  color: #c62828; /* red */
  border: 1px solid #c62828;
}

.status-label:hover {
  opacity: 0.85;
}
