
/* Page Layout */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 20px;
}

/* Main Container */
.container {
  max-width: 1100px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Heading */
h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Form Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* Inputs */
input, select, textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  font-size: 14px;
  margin: 10px auto;
}

input:focus {
  outline: none;
  border-color: #007bff;
}

button {
    margin-top: 20px;
    font-size: 17px;
    padding: 0.5em 2em;
    border: transparent;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    background: dodgerblue;
    color: white;
    border-radius: 4px;
}

button:hover {
    background: rgb(2,0,36);
    background: linear-gradient(90deg, rgba(30,144,255,1) 0%, rgba(0,212,255,1) 100%);
}

button:active {
    transform: translate(0em, 0.2em);
}

/* Primary Button */
.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Edit Button */
.btn-edit {
  background-color: #28a745;
  color: white;
}

.btn-edit:hover {
  background-color: #1e7e34;
}

/* Delete Button */
.btn-delete {
  background-color: #dc3545;
  color: white;
}

.btn-delete:hover {
  background-color: #b52a37;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

/* Table Header */
th {
  background-color: #007bff;
  color: white;
  padding: 10px;
  text-align: left;
}

/* Table Rows */
td {
  border: 1px solid #ddd;
  padding: 8px;
}

/* Alternate Row Color */
tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover Effect */
tr:hover {
  background-color: #f1f1f1;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 8px;
}
/* मोबाइल रेस्पॉन्सिव लेआउट */
@media (max-width: 768px) {

  /* कंटेनर में padding कम करें */
  .container {
    padding: 10px;
  }

  /* फॉर्म ग्रिड को 1 कॉलम में बदलें */
  form.grid.grid-3 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* इनपुट, textarea, select की width 100% */
  input, textarea, select {
    font-size: 16px;
    padding: 10px;
  }
  
  @media print {

    @page {
      size: A4;
      margin: 10mm;
    }

    body {
      margin: 0;
      padding: 0;
      background: white;

      /* Color print force */
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }

    /* बाकी page hide */
    body * {
      visibility: hidden;
    }

    /* सिर्फ Namuna 8 दिखे */
    .container, .container * {
      visibility: visible;
    }

    .container {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      box-shadow: none;
    }

    /* print में button hide */
    .no-print {
      display: none !important;
    }

  }
  /* बटन को फुल-वाइड बनाएं */
  .button-group button {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    margin-bottom: 8px;
  }
/* Print Settings */
  @media print {

    /* Browser header/footer remove hint */
    @page {
      size: auto;
      margin: 10mm;
    }

    body {
      margin: 0;
      padding: 0;
      background: white;
    }

    /* बाकी page hide */
    body * {
      visibility: hidden;
    }

    /* सिर्फ Namuna 8 container दिखे */
    .container, .container * {
      visibility: visible;
    }

    .container {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      box-shadow: none;
    }

    /* Print button hide */
    .no-print {
      display: none !important;
    }

  }
  /* टेबल को horizontal scroll देने के लिए wrapper */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  /* टेबल के थ और td padding कम करें */
  table th, table td {
    padding: 8px 6px;
    font-size: 14px;
  }

  /* टेबल की font-size बढ़ाएं ताकि मोबाइल पर पढ़ना आसान हो */
  table {
    font-size: 14px;
  }

  /* हेडर के इनपुट फील्ड्स स्टैक करें */
  .header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .header-info input {
    flex: 1 1 45%;
    min-width:100%
  }

  /* हेडर बॉक्स्स और टेक्स्ट सेंटर करें */
  .header {
    text-align: center;
  }

  /* हेडर टाइटल बड़ा करें */
  .header-title {
    font-size: 24px;
  }
  .header-subtitle {
    font-size: 18px;
  }

  /* नोटिस का फॉन्ट बड़ा करें */
  .header-info {
    font-size: 16px;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
