.left{ float: left; }
.right{ float: right; }
.center{ text-align: center; }
.clear{ clear: both; }

img{ border: 0; }
a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.gradient-text {
  background: linear-gradient(
    135deg,
    #ffe000 0%,
    #00ff88 30%,
    #00ffcc 60%,
    #00e5ff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
  animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 255, 200, 0.9));
  }
}

.m0{margin: 0px;}
.m5{margin: 5px;}
.m10{margin: 10px;}
.m20{margin: 20px;}
.m30{margin: 30px;}
.m40{margin: 40px;}
.mb0{margin-bottom: 0px;}
.mb5{margin-bottom: 5px;}
.mb10{margin-bottom: 10px;}
.mb15{margin-bottom: 15px;}
.mb20{margin-bottom: 20px;}
.mb30{margin-bottom: 30px;}
.mb40{margin-bottom:40px;}
.mt0{margin-top: 0px;}
.mt5{margin-top: 5px;}
.mt10{margin-top: 10px;}
.mt20{margin-top: 20px;}
.mt30{margin-top: 30px;}
.mt40{margin-top:40px;}
.mv0{margin: 0px auto;}
.mv5{margin: 5px auto;}
.mv10{margin: 10px auto;}
.mv20{margin: 20px auto;}
.mv30{margin: 30px auto;}
.mv40{margin:40px auto;}

.ml5{margin-left: 5px}
.ml10{margin-left: 10px;}
.ml20{margin-left: 20px;}
.ml30{margin-left: 30px;}
.ml40{margin-left: 40px;}
.mr5{margin-right: 5px}
.mr10{margin-right: 10px;}
.mr20{margin-right: 20px;}
.mr30{margin-right: 30px;}
.mr40{margin-right: 40px;}

.p0{padding: 0px;}
.p5{padding: 5px;}
.p10{padding: 10px;}
.p20{padding: 20px;}
.p30{padding: 30px;}
.p40{padding: 40px;}
.pb5{padding-bottom: 5px;}
.pb10{padding-bottom: 10px;}
.pb20{padding-bottom: 20px;}
.pb30{padding-bottom: 30px;}
.pb40{padding-bottom:40px;}
.pt5{padding-top: 5px;}
.pt10{padding-top: 10px;}
.pt20{padding-top: 20px;}
.pt30{padding-top: 30px;}
.pt40{padding-top:40px;}
.pv5{padding:0px 5px}
.pv10{padding:0px 10px;}
.pv20{padding:0px 20px;}
.pv30{padding:0px 30px;}
.pv40{padding:0px 40px;}

.pl5{padding-left: 5px}
.pl10{padding-left: 10px;}
.pl20{padding-left: 20px;}
.pl30{padding-left: 30px;}
.pl40{padding-left: 40px;}
.pr0{padding-right: 0px}
.pr5{padding-right: 5px}
.pr10{padding-right: 10px;}
.pr20{padding-right: 20px;}
.pr30{padding-right: 30px;}
.pr40{padding-right: 40px;}
.align-center {
    align-items: center;
}

.text-red, .has-error .checkbox, .has-error .checkbox-inline, .has-error .control-label, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.checkbox label, .has-error.checkbox-inline label, .has-error.radio label, .has-error.radio-inline label {
    color: #a94442;
}
.text-gray, .footer-bar a {
    color: #555 !important;
}

.text-white{ color: #FFF; }

.circle{
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.circle_t {
    -webkit-border-radius: 50% 50% 0 0;
    -moz-border-radius: 50% 50% 0 0;
    border-radius: 50% 50% 0 0;
}
.circle_r {
    -webkit-border-radius: 0 50% 50% 0;
    -moz-border-radius: 0 50% 50% 0;
    border-radius: 0 50% 50% 0;
}
.circle_l{
    -webkit-border-radius: 50% 0 50% 0;
    -moz-border-radius: 50% 0 50% 0;
    border-radius: 50% 0 50% 0;
}
.circle_b{
    -webkit-border-radius: 0 0 50% 50% ;
    -moz-border-radius:  0 0 50% 50% ;
    border-radius:  0 0 50% 50% ;
}

.shadow{
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}

.text-shadow{
    text-shadow: 0px 0px 10px rgba(90,90,90,0.5);
}

.loading{
    position: absolute;
    top:0px;
    left: 0px;
    width:100%;
    height:100%;
    z-index: 9999999;
    min-height: 250px;
}

.loading.bottom-position{
    position: relative;
    max-height: 100px;
}

.loading.cover{
    position: fixed;
    display: block;
}

.loading_bgW{
    background-color: rgba(20, 19, 19, 0.296);
}
/* */
.loading .fa{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    color: #000;
    font-size: 40px;
}
.modal-dialog .loading{
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.radius {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;	
}

.img_resize {
    display: block;
    width: 100%;   
    height: auto;
}

.background-cover , .bg-cover{
    background-position:center center;background-repeat:no-repeat;-webkit-background-size:cover;background-size:cover;display:block;width:100%;
}

.trimText { width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.text-xs-left { text-align: left; }
.text-xs-right { text-align: right; }
.text-xs-center { text-align: center; }
.text-xs-justify { text-align: justify; }

@media (min-width: 768px ) {
    .text-sm-left { text-align: left; }
    .text-sm-right { text-align: right; }
    .text-sm-center { text-align: center; }
    .text-sm-justify { text-align: justify; }
}

@media (min-width: 992px) {
    .text-md-left { text-align: left; }
    .text-md-right { text-align: right; }
    .text-md-center { text-align: center; }
    .text-md-justify { text-align: justify; }
}

@media (min-width: 1200px ) {
    .text-lg-left { text-align: left; }
    .text-lg-right { text-align: right; }
    .text-lg-center { text-align: center; }
    .text-lg-justify { text-align: justify; }
} 
.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}
.pointer{
    cursor:pointer
}

.bg-white{
    background-color:#fff;
}
.bg-grey{
    background-color: #F5F5F5;
}
.bg-gray-light{background-color:#f7f7f7}

.btn-circle {width: 30px;height: 30px;text-align: center;padding: 6px 0;font-size: 12px;line-height: 1.42;border-radius: 15px;}

.modal-dialog.modal-transparent .modal-content{
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid rgba(0, 0, 0, 0);
    -webkit-box-shadow: 0 3px 9px rgba(0,0,0,0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0); 
} 

.btn.btn-flat {
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-width: 1px;
    background-image: none;
}

.o10 { opacity: 0.1 }
.o20 { opacity: 0.2 }
.o30 { opacity: 0.3 }
.o40 { opacity: 0.4 }
.o50 { opacity: 0.5 }
.o60 { opacity: 0.6 }
.o70 { opacity: 0.7 }
.o80 { opacity: 0.8 }
.o90 { opacity: 0.9 }

.glow {
    color: #FFF;
    text-shadow: 0 0 0.1em #f8fdfb, 0 0 0.1em #f8fdfb;
}


.d-block-sm {
    display: none !important;
}
.d-block-lg {
    display: block !important;
}
@media (max-width: 768px) {
    .d-block-sm {
        display: block !important;
    }
    .d-block-lg {
        display: none !important;
    }
}
  .apply-btn {
    background: linear-gradient(90deg, #00d9ff, #00ffcd);
    width: 180px;
    height: 30px;
    padding: 10px;
    margin-left: 10px;
    color: rgb(0, 0, 0);
    border-radius: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-wrap: nowrap;
  }

  .apply-btn:hover {
    transform: scale(1.05);
  }
/* 後台 */
  .btn {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}
.btn-sub {
  background: #fff;
  color: #00aa9e !important;
  border: 2px solid #00aa9e !important;
}
.btn-main {
    background: linear-gradient(135deg, #089284 50%, #2fd8b5 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
    position: relative;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 191, 165, 0.5);
    animation: gradientShift 1.5s ease infinite;
    color: #fff;
}

.btn-main:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover .btn-icon::after {
    transform: translateX(4px);
}

/* 後台 表格 */
.table td {
    color: #fff;
}

.table {
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 2rem;
}

.table thead {
  background: linear-gradient(90deg, #1a5555, #164545);
  border-bottom: 2px solid #e5e7eb;
}

.table thead th {
  padding: 18px 24px;
  font-size: 18px;;
  text-align: left;
  font-weight: 600;
  color: #7ee8d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.table tbody tr {
  transition: all 0.3s;
}

.table-record tbody tr:hover {
    background: rgba(34, 211, 170, 0.15);
    transform: translateX(2px);
}

.table tbody td {
  color: #b8e6d9;
  padding: 20px 24px;
}

/* input 樣式 */
.form-label {
  width: 6rem;
  text-align: right;
  padding-right: 5px;
  margin-bottom: 8px;
}
.form-input {
  background: rgba(0, 0, 0, 0.083);
  padding: 8px 20px;
  border: 2px solid rgba(0, 255, 200, 0.4);
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
  font-family: inherit;
  width: 70%;
  color: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}