﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}


/* Page Loader */
#pageload {
    position:fixed;
    left:0px;
    top:0px;
    height:100vh;
    width:100vw;
    background-color:rgba(128,128,128, 0.5);
    z-index: 1000;
}
.loader {
    width: 200px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    
}

    .loader .circle {
        width: 20px;
        height: 20px;
        position: absolute;
        border-radius: 50%;
        background-color: #ff0000;
        left: 15%;
        transform-origin: 50%;
        animation: circle .5s alternate infinite ease;
    }

@keyframes circle {
    0% {
        top: 60px;
        height: 5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }

    40% {
        height: 20px;
        border-radius: 50%;
        transform: scaleX(1);
    }

    100% {
        top: 0%;
    }
}

.loader .circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
    background: #ffff00;
}

.loader .circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
    background: #33cc33;
}

.loader .shadow {
    width: 20px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top: 62px;
    transform-origin: 50%;
    z-index: -1;
    left: 15%;
    filter: blur(1px);
    animation: shadow .5s alternate infinite ease;
}

@keyframes shadow {
    0% {
        transform: scaleX(1.5);
    }

    40% {
        transform: scaleX(1);
        opacity: .7;
    }

    100% {
        transform: scaleX(.2);
        opacity: .4;
    }
}

.loader .shadow:nth-child(4) {
    left: 45%;
    animation-delay: .2s
}

.loader .shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}

.loader span {
    position: absolute;
    top: 75px;
    font-size: 32px;
    font-weight: bolder;
    letter-spacing: 12px;
    color: #fff;
    left: 20%;
    text-shadow: #1861ac 1px 0 10px;
}

.fa-arrow-circle-up.text-success, .fa-arrow-circle-down.text-primary {
    font-size:1.6rem;
    vertical-align:middle;
}

.itemTable:hover {
    background-color:#e5eff3;
}

.table-hover tr:hover {
    font-weight: 700;
}

.table-hover tr:hover td {
     background-color:#e8f6fe;
}

table.dataTable thead > tr > th, table.dataTable thead > tr > td {
    background: #1b6ec2;
    color:#ffffff;
}

body.login-page {
    min-height: 100vh; /* 確保背景高度撐滿畫面 */
    background-image:
    linear-gradient(135deg, #fefce8 0%, #fef08a 50%, #fed7aa 100%);
}

body.login-page .login-logo a,
body.login-page .login-box-msg,
body.login-page .form-control,
body.login-page .btn {
    font-weight: bold;
}

body.login-page .form-control::placeholder {
    font-weight: bold;
}
