/* ==========================================================================
   RookieTools Web - Main Style (High Contrast Dark Text Version)
   ========================================================================== */

/* reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
dl,
dt,
dd,
ol,
nav ul,
nav li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* start editing from here */
a {
  text-decoration: none;
}
.txt-rt {
  text-align: right;
}
.txt-lt {
  text-align: left;
}
.txt-center {
  text-align: center;
}
.float-rt {
  float: right;
}
.float-lt {
  float: left;
}
.clear {
  clear: both;
}
.pos-relative {
  position: relative;
}
.pos-absolute {
  position: absolute;
}
.vertical-base {
  vertical-align: baseline;
}
.vertical-top {
  vertical-align: top;
}
.underline {
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  margin: 0 0 20px 0;
}
nav.vertical ul li {
  display: block;
}
nav.horizontal ul li {
  display: inline-block;
}
img {
  max-width: 100%;
}
/*end reset*/

/* 抵抗 Safari 及 Dark Mode 外掛強制注入背景色 */
html,
body,
#app-root,
.main-container,
.wrap {
  background-color: transparent !important;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Geneva, Helvetica, sans-serif;
  font-size: 0.8924em;
  color: #1a1a1a; /* 改為深炭灰色以配合淺色動態背景 */
}

/* 100vh 彈性佈局主容器 */
#app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 15px 10px;
  width: 100%;
}

.main-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrap {
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.header {
  margin: 10px 0;
}

/* Logo 樣式 - 置中與圓角 */
.logo {
  text-align: center !important;
  margin-bottom: 20px;
}
.logo img {
  display: inline-block !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.logo1 {
  text-align: center !important;
}

/* 登入頁面標題與標籤深色獨立樣式 */
.login-title {
  font-size: 22px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.login-label {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  margin-right: 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.login-input {
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #333;
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 選單與按鈕樣式 */
.nav-collapse.nav-collapse_.collapse {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.nav-collapse_ .nav {
  position: relative;
  display: block;
  width: 100%;
}
.nav-collapse_ .nav > li {
  display: block;
  border: none;
  font-weight: normal;
  margin: 12px 0 !important;
}
.nav-collapse_ .nav > li > a {
  color: #ffffff !important;
  position: relative;
  display: block;
  padding: 16px 24px !important;
  text-align: center;
  font-size: 18px !important;
  font-weight: bold !important;
  line-height: 24px;
  text-decoration: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.nav-collapse_ .nav > li > a:hover,
.nav-collapse_ .nav > li > a:focus,
.nav-collapse_ .nav > li.active > a {
  background: #1e2124 !important;
  color: #b5d10f !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 高對比配色 */
.nav-collapse_ .nav .color-1 {
  background: #7a9700 !important;
  border: 1px solid #9cc200 !important;
}
.nav-collapse_ .nav .color-2 {
  background: #688200 !important;
  border: 1px solid #87a800 !important;
}
.nav-collapse_ .nav .color-3 {
  background: #566e00 !important;
  border: 1px solid #739100 !important;
}
.nav-collapse_ .nav .color-4 {
  background: #465b00 !important;
  border: 1px solid #607c00 !important;
}

/* 登入 Submit 按鈕 */
form input[type="submit"] {
  font-family: Arial, Geneva, Helvetica, sans-serif;
  cursor: pointer;
  display: inline-block;
  background-color: #b5d10f !important;
  border: 1px solid #d4f224 !important;
  text-transform: uppercase;
  color: #1a1a1a !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 14px 32px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  margin-top: 15px;
  transition: all 0.2s ease;
}
form input[type="submit"]:hover {
  background-color: #85910b !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* content */
.content {
  margin: 10px 0;
  background: rgba(30, 30, 30, 0.75);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.txt_h {
  display: block;
  padding: 15px;
}
.txt_h h2 {
  font-size: 1.4em;
  color: #ffffff;
  line-height: 1.5em;
  text-transform: uppercase;
}

/* footer - 貼底置中與高對比深色保護 */
.f_main {
  width: 100%;
  max-width: 500px;
  text-align: center !important;
  display: block;
  box-sizing: border-box;
}
.f_btm {
  padding: 15px 0 10px;
  text-align: center !important;
}
.footer {
  margin-top: 5px;
  text-align: center !important;
}
.footer p.w3-link {
  color: #1a1a1a !important;
  font-size: 0.8924em;
  font-weight: bold;
  line-height: 1.5em;
  text-align: center !important;
  margin: 0 auto !important;
  background: rgba(255, 255, 255, 0.65);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.footer p.w3-link a {
  color: #0044cc !important;
  text-decoration: underline;
  font-weight: bold;
}
.footer p.w3-link a:hover {
  color: #d93800 !important;
}

/* details */
.details h2 {
  font-size: 1.4em;
  color: #ffffff;
  line-height: 1.5em;
  text-transform: uppercase;
}
.details h2 span {
  color: #f8bfaa;
}

/* 404 */
.page {
  text-align: center;
}
.page h2 {
  font-size: 8em;
  color: #fff;
}
