:root {
    --main-title-text-color: #16212d;
    --main-text-color: #696969;
    --heading-font-weight: 500;
    --text-font-size-s: 12px;
    --text-font-size: 14px;
    --text-font-size-lg: 16px;
    --text-font-size-xlg: 18px;
    --text-font-size-xxlg: 20px;
    --input-field-border: 0.09rem solid #CCCCCC;
    --input-field-bg: #E6E6E6;
    --section-pad: 1.4rem 1.2rem;
    --section-border-rads: 0.22rem;
    --input-field-border-rads: 0.1rem;
    --input-field-pad: .375rem .4rem;
    --select-field-pad: .375rem 0;
    --btn-padding: .7rem .4rem;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    user-select: none;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: var(--text-font-size);
    font-weight: 400;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333333;
    padding: 0;
    margin: 0;
    scrollbar-gutter: stable;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

#header-container {
    height: 9vh;
}

.layout {
    height: 91vh;
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    flex-grow: 1;
    overflow-y: auto;
}

main {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: #FFFFFF;
}

.loading {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.v-hidden {
    visibility: hidden !important;
}

.d-none {
    display: none !important;
}

.full-height {
    height: 100%;
}

.full-width {
    width: 100%;
}

.flex-hv-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-v-center {
    display: flex;
    align-items: center;
}

.flex-h-center {
    display: flex;
    justify-content: center;
}

.flex-h-center-v-sbetwn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.heading-text {
    font-weight: var(--heading-font-weight);
}

.text-center {
    text-align: center;
}

.btn {
    display: block;
    text-align: center;
    padding: .65rem .4rem;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #0056b3;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.95);
}

.success-btn {
    background-color: #28a745;
}

.success-btn:hover {
    background-color: #006400;
}

.danger-btn {
    background-color: #dc3545;
}

.danger-btn:hover {
    background-color: #b02a37;
}

.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 0.625rem;
}

/* button disbaled style handling */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666;
}

.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #ccc !important;
    color: #666 !important;
    pointer-events: none;
}

button:disabled:hover {
    cursor: not-allowed;
    background-color: #ccc;
}

button:disabled:active {
    transform: inherit;
}

.cursor-pointer:hover {
    cursor: pointer;
}


/* Main container animation */
#main-content {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Animate out: slide left and fade out */
#main-content.animate-out {
    transform: translateX(-100%);
    /* Slide out to the left */
    opacity: 0;
    /* Fade out */
}

/* Animate in: slide in from right and fade in */
#main-content.animate-in {
    transform: translateX(100%);
    /* Start from the right */
    opacity: 0;
    /* Start invisible */
    animation: slide-in 0.5s forwards;
    /* Slide and fade in */
}

/* Slide in keyframes */
@keyframes slide-in {
    to {
        transform: translateX(0);
        /* End at original position */
        opacity: 1;
        /* Fully visible */
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        gap: 1em;
    }

    .btn {
        padding: 0.6em 0.4em !important;
    }
}

/* Small Devices (Full HD - 1920x1080) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: var(--text-font-size-s);
  }

   #header-container {
      height: 6vh !important;
  }
}

/* Small Devices (Full HD - 1920x1080) */
@media screen and (min-width: 1367px) and (max-width: 1920px) {
  body {
    font-size: var(--text-font-size-lg);
  }
}

/* Small Devices (Full HD - 1920x1080) */
@media screen and (min-width: 1367px) and (max-width: 1920px) {
  body {
    font-size: var(--text-font-size-lg) !important;
  }

  .btn {
    padding: 0.8em 0.5em !important;
  }

  #header-container {
      height: 8vh !important;
  }
}

@media screen and (min-width: 1921px) and (max-width: 2560px) {
  body {
    font-size: var(--text-font-size-xlg) !important;
  }

  .btn {
    padding: 0.9em 0.6em !important;
  }

  #header-container {
      height: 6vh !important;
  }
}

@media screen and (min-width: 2561px) {
  body {
    font-size: var(--text-font-size-xxlg) !important;
  }

  .btn {
    padding: 1em 0.7em !important;
  }

  #header-container {
      height: 6vh !important;
  }
}

