* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: #f8f9fa;
      color: #333;
      line-height: 1.6;
      padding: 15px;
      min-height: 100vh;
    }

    nav {
      background: #2c3e50;
      padding: 12px 15px;
      border-radius: 10px;
      margin-bottom: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
    }

    nav a {
      color: white;
      text-decoration: none;
      padding: 10px 14px;
      border-radius: 6px;
      font-size: 15px;
      background: rgba(255,255,255,0.1);
      transition: all 0.3s;
    }

    nav a:hover {
      background: rgba(255,255,255,0.25);
    }

    h1 {
      text-align: center;
      margin: 20px 0 25px;
      font-size: 1.8rem;
      color: #222;
    }

    .buttons {
      display: flex;
      flex-direction: column;
      gap: 15px;
      max-width: 420px;
      margin: 30px auto;
    }

    button {
      padding: 18px;
      font-size: 1.1rem;
      font-weight: 600;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    #entry-btn {
      background: #27ae60;
      color: white;
    }

    #exit-btn {
      background: #e74c3c;
      color: white;
    }

    button:active {
      transform: scale(0.96);
    }

    #status {
      text-align: center;
      margin: 20px 0;
      font-size: 1.1rem;
      font-weight: 500;
      min-height: 1.8em;
    }

    /* ==================== FORM STYLING ==================== */
    form {
      background: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 3px 12px rgba(0,0,0,0.08);
      margin: 20px 0;
    }

    .form-group {
      margin-bottom: 18px;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
      color: #444;
      font-size: 0.95rem;
    }

    input, select, textarea {
      width: 100%;
      padding: 14px 12px;
      border: 2px solid #ddd;
      border-radius: 8px;
      font-size: 1rem;
      transition: border 0.3s;
    }

    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: #3498db;
      box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

    /* ==================== TABLE STYLING ==================== */
    table {
      width: 100%;
      border-collapse: collapse;
      background: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 3px 12px rgba(0,0,0,0.08);
      margin: 20px 0;
    }

    th, td {
      padding: 14px 10px;
      text-align: left;
      border-bottom: 1px solid #eee;
    }

    th {
      background: #34495e;
      color: white;
      font-weight: 600;
    }

    tr:hover {
      background: #f1f8ff;
    }

    /* Responsive Table */
    .table-container {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 10px;
      margin: 20px 0;
    }

    /* ==================== RESPONSIVE IMPROVEMENTS ==================== */
    @media (min-width: 768px) {
      body {
        padding: 20px;
      }
      
      .buttons {
        flex-direction: row;
      }
      
      form {
        padding: 25px;
      }
      
      th, td {
        padding: 16px 12px;
      }
    }

    /* Small text adjustment on very small screens */
    @media (max-width: 480px) {
      h1 {
        font-size: 1.6rem;
      }
      
      button {
        padding: 16px;
        font-size: 1.05rem;
      }
    }
