:root {
    --fb-dark: #012169;
    --fb-dark-light: #25407E;
    --fb-dark-rgba: rgba(1, 33, 105, 0.5);
    --fb-dark-disable: #C0C8DA;
    --fb-dark-grey: #222222;
}

html,
body {
    margin: 0;
    padding: 0px;
    height: 100%;
    overflow: hidden;
    background-color: var(--fb-dark-grey);
}

.app_container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.top {
    height: 90px;
    width: 100%;
    /* padding: 0 15px; */
    background-color: var(--fb-dark);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.center-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.content {
    height: calc(100vh - 90px - 50px);
    width: 100%;
    overflow-y: auto;
    background-color: white;
    box-sizing: border-box;
    overflow: hidden;
}

.footer {
    height: 50px;
    width: 100%;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-sizing: border-box;
    padding: 15px;
    overflow: hidden;
    background-color: var(--fb-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.scrollable-content {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
}

.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    /* border-radius: 15px; */
}

.scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

#video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
    height: auto;
    /* aspect-ratio: 16 / 9; */
    width: 100%;
    max-width: 100vw;
    margin: auto;
    box-sizing: border-box;
    position: relative;
    border: 1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1);
}

#qr-video {
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    max-width: 100%;
    /* max-height: 100%; */
}

#flash-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    /* Ensure it's above the video */
}


/* #flash-toggle {
    display: none;
} */

#flash-toggle {
    display: block;
    /* Make sure it's visible */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

input[type="file"] {
    display: block;
    margin-bottom: 16px;
}

.navbar-toggler {
    background-color: transparent;
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.carousel-inner {
    width: 100%;
    height: 300px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      background-color: var(--fb-dark);

  }

.carousel-indicators button.active {
    background-color: var(--fb-dark);
    /* Color when the button is active */
}

.carousel-indicators button:hover {
    background-color: var(--fb-dark-light);
    /* Color on hover */
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    color: var(--fb-dark);
    font-size: 1.5rem;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color:var(--fb-dark-light);
}

.formset-item {
    border: 1px solid var(--fb-dark-grey);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 8px;
    position: relative;

}

#formset-container {
    border: 1px solid rgba(0, 0, 0, 0.176);
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 8px;
        position: relative;

    }

/* Report Fault Page */
#site_asset_details_box {
    border-width: 1px;
    border-color: black;
}

/* Homescreen Buttons */

.custom-button {
    aspect-ratio: 1/1;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s
}

.custom-button:hover .custom-button-img,
.custom-button:active .custom-button-img {
    filter: invert(1);
    /* Inverts SVG color */
}

/* Loading Modal */

#loading_modal {
    display: none;
}

body.loading #loading_modal {
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .8);
    overflow: hidden;
}

body.loading #spinning-svg {
    animation: spin 4s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#flash-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    margin: auto;
    box-sizing: border-box;
}


.table-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 0px;
    border-radius: 8px;
    overflow-y: auto;
    height: calc(100% - 80px);
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.table-scroll {
    width: 100%;
    border-collapse: collapse;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    z-index: 1;
    border-bottom: 2px solid #34495e;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

.table-scroll tbody td {
    border-bottom: 1px solid #ecf0f1;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    color: #34495e;
}


  @media (max-width: 576px) {

      .table-scroll tbody td,
      .table-scroll thead th {
          font-size: 0.75rem;
      }
  }


.table-scroll tbody tr:nth-child(odd) {
    background-color: #f4f6f7;
}

.table-scroll tbody tr:hover {
    background-color: #e3e9ef;
    transform: translateY(-1px);
    transition: background-color 0.3s, transform 0.2s;
}

.table-scroll .pointer {
    cursor: pointer;
    transition: transform 0.2s;
}

.table-scroll .pointer:hover {
    transform: scale(1.05);
}

.small_label {
                    font-size: 0.75rem;
                    color: gray;

}

  .form-floating label {
      color: gray;
  }

  .form-floating input:focus~label,
  .form-floating input:not(:placeholder-shown)~label {
      color: black;
  }

.vert {
    width: 100%;
    border-collapse: collapse;
}

.vert th {
    background-color: #2c3e50;
    color: #ecf0f1;
    z-index: 1;
    border: 1px solid #34495e;
    text-align: left;
    padding: 5px 5px;
    font-size: 14px;
    font-weight: 600;
    width: 35%;
}

.vert td {
    border: 1px solid #ecf0f1;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    color: #34495e;
}