﻿/* ===============================================================
   BASE / RESET
   =============================================================== */

/* Tables use collapsed borders throughout the application */
table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ===============================================================
   CORE
   =============================================================== */

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 15px;
    line-height: 140%;
    padding: 5px;
    margin: 8px;
}


/* ===============================================================
   LINKS
   =============================================================== */

a,
a:active,
a:focus {
  text-decoration: none;
}

  a:hover {
    text-decoration: underline;
  }


/* ===============================================================
   HEADINGS
   =============================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 100%;
  margin-bottom: 5px;
}

h1 {
  font-size: 175%;
  font-weight: 400;
  line-height: normal;
  border-bottom: 1px dashed #d3d3d3;
  margin: 0 0 10px;
  padding: 0 0 10px;
}

h2 {
  font-size: 120%;
}

h3 {
  font-size: 110%;
}

h4 {
  font-size: 100%;
}

h5 {
  font-size: 100%;
}

h6 {
  font-size: 90%;
}

/* Common paragraph and heading spacing */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0.7em 0;
  padding: 0;
}


/* ===============================================================
   FORMS
   =============================================================== */

form {
  display: inline;
  padding: 0;
}

/* Common form controls */
input,
select,
textarea,
.inputbox {
  border-color: #c1c1c1 #e1e1e1 #e1e1e1;
  border-right: 1px solid #e1e1e1;
  border-style: solid;
  border-width: 1px;
  color: #656565;
  font-family: Arial, Helvetica, sans-serif;
  padding: 4px;
}

/* Horizontal rule */
hr {
  border: 0;
  height: 1px;
  background: #ccc;
}


/* ===============================================================
   TABLES
   =============================================================== */

/* Admin form table headings */
.adminForm table thead tr,
.adminForm table thead tr th {
  background: #222;
  color: #fff;
  text-align: left;
  border-bottom: 1px solid #b4b4b4;
  font-weight: 700;
  padding: 5px 10px;
}

.adminForm th a {
  color: #fff;
}

.adminForm td {
  padding: 4px;
  vertical-align: middle;
}

/* Paragraphs inside table cells */
td p {
  line-height: 1.3em;
  margin: 0;
}

/* Targets the 2nd column of the table */
.adminForm table td:first-child, .adminForm table td:nth-child(2) {
    white-space: nowrap;
}

.heading {
  font-weight: bold;
  text-decoration: underline;
}


/* ===============================================================
   BUTTONS
   =============================================================== */

/* Shared button appearance */
.button-style,
button[type="submit"],
input[type="submit"],
input[type="button"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-block;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-weight: bold;
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

  /* Hover and keyboard-focus states */
  .button-style:hover,
  .button-style:focus,
  button[type="submit"]:hover,
  button[type="submit"]:focus,
  input[type="submit"]:hover,
  input[type="submit"]:focus,
  input[type="button"]:hover,
  input[type="button"]:focus {
    background-color: #0056b3;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
  }

  /* Pressed state */
  .button-style:active,
  button[type="submit"]:active,
  input[type="submit"]:active,
  input[type="button"]:active {
    background-color: #004085;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  }

  /* Disabled controls */
  .button-style:disabled,
  .button-style[disabled],
  button:disabled,
  button[disabled],
  input:disabled,
  input[disabled] {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
    pointer-events: none;
  }


/* ===============================================================
   MISCELLANEOUS
   =============================================================== */

small {
  font-size: 85%;
}


/* ===============================================================
   VALIDATION
   =============================================================== */

.error {
  font-size: 85%;
  color: red;
}


/* ===============================================================
   REPORT VIEWER
   =============================================================== */

.reportViewer td {
  padding: 0;
  border: 0;
}


/* ===============================================================
   RADIO BUTTON LIST
   =============================================================== */

.rbl input {
  margin-left: 0;
  margin-right: 2px;
}

.rbl label {
  margin-left: 2px;
  margin-right: 15px;
}


/* ===============================================================
   ADMIN / STORE GRID
   =============================================================== */

@media screen and (max-width: 600px) {

  /* Remove table borders on small screens */
  .adminForm table {
    border: 0;
  }

  /* Convert admin rows to blocks */
  .adminForm tr {
    display: block;
    margin-bottom: 0.625em;
  }

  .adminForm td {
    display: block;
    text-align: left;
  }

  /* Hide store grid headers on mobile */
  .storegridview thead {
    display: none;
  }

  /* Display each store row as a card */
  .storegridview tr {
    display: block;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
  }

  /* Display each cell as a block */
  .storegridview td {
    display: block;
    text-align: left;
    padding: 8px;
    position: relative;
  }

    /* Display HeaderText as a label.
       Requires data-label to be supplied by the markup. */
    .storegridview td::before {
      content: attr(data-label);
      font-weight: bold;
      display: block;
      color: #333;
    }
}


/* ===============================================================
   RESPONSIVE FORM ROW
   Used on the Default_Nursery page for Standard,
   Division and Roll Number fields.
   =============================================================== */

.responsive-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-field-group {
  display: flex;
  align-items: center;
}


/* ===============================================================
   PAYMENT GATEWAY LOADING SPINNER
   =============================================================== */

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0078d4;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 16px;
  color: #333;
}
