
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
      font-family: 'Roboto', sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow: hidden;
      background:transparent !important;
}

html {
  font-family: 'Roboto', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --bs-font-sans-serif: 'Roboto', sans-serif !important;
}

.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea { max-width: 100%; }

/* Set padding to display errors that occur during databinding */
.padding-error {
    padding-top: 20px;
}
.relative{
  position: relative;
}

@media only screen and (max-width: 767px) {
    .nofloat {
        float: none;
        padding: 10px 15px;
    }
}

/* ============================================ */
/* AJAX LOADING SPINNER */
/* ============================================ */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 120px);
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    animation: fadeInContainer 0.5s ease-out;
}

@keyframes fadeInContainer {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    animation: fadeInSpinner 0.6s ease-out;
}

@keyframes fadeInSpinner {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Outer ring - rotating */
.loading-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(94, 75, 159, 0.1);
    border-top-color: var(--primary-brand, #1976d2);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 4px 16px rgba(94, 75, 159, 0.15);
}

/* Inner ring - counter-rotating */
.loading-spinner::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 3px solid rgba(94, 75, 159, 0.05);
    border-right-color: var(--primary-brand, #1976d2);
    border-radius: 50%;
    animation: spin-reverse 0.8s linear infinite;
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.loading-text {
    margin-top: 30px;
    font-size: 18px;
    color: var(--text-primary, #333);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInText 0.7s ease-out 0.2s both;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ============================================ */
/* AJAX ERROR CONTAINER */
/* ============================================ */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
   height: calc(100vh - 120px);
    padding: 40px;
    text-align: center;
}

.error-icon {
    margin-bottom: 20px;
    opacity: 0.8;
}

.error-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 12px;
}

.error-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    max-width: 500px;
}

.error-container .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-container .btn-primary {
    background-color: var(--primary-brand);
    color: white;
}

.error-container .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: inherit !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-in-out 0s;
}

.main-content-wrap {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-height: calc(100vh - 120px);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.main-content-wrap::-webkit-scrollbar {
    width: 0;
    height: 8px;
}

.main-content-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.main-content-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.main-content-wrap::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.main-content-wrap::-webkit-scrollbar-corner {
    background: transparent;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.8);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}