* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft JhengHei', sans-serif;
}
body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width:100%;
}
.container {
    width: 25%;
    max-width: 90%;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.btn {
    flex: 1;
    margin: 0 42%;
    padding: 12px 0;
    width:15%;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}
#clock-in {
    background-color: #2196F3;
}
#clock-out {
    background-color: #f44336;
}
.btn:hover {
    opacity: 0.9;
}
.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
#status {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}
.success {
    background-color: #dff0d8;
    color: #3c763d;
}
.error {
    background-color: #f2dede;
    color: #a94442;
}
.clock-display {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #555;
}
#current-time {
    font-weight: bold;
    font-size: 24px;
}
#login-form {
    display: block;
}
#attendance-system {
    display: none;
}
#user-info {
    margin-bottom: 20px;
    text-align: center;
}
#logout-btn {
    background-color: #9e9e9e;
    margin-top: 20px;
}

.bg-blue{
    background-color:#A8D0DB
}

.bg-blue2{
    background-color:#388697
}

.bg-green{
    background-color:#8FBC94
}

*{
    font-family: 'Solway', serif;
}

.center{
    text-align: center;
}

.button-size{
    height: 40px;
    width: 60px;
}

.PriceForm{
    position: relative;
    margin-top: 15px;
    width: 150px;
    height: 30px;
    background-color: #24282E;
    border: 1px solid #A5ABB2;;
    border-radius: 5px;
}

.navbar-nav .nav-item {
    position: relative;
    display: inline-block;
}

.navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: white; /* 底线颜色 */
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-item:hover::after {
    width: 100%;
}

#changing-text {
    transition: opacity 0.5s ease-in-out;
  }

/* 固定在顶部的Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 11%;
    z-index: 1000;
}

.navbar-nav{
    position: fixed;
    top: 2%;
    left: 80%;
    width: 100%;
    z-index: 1000;
}


/* 主体内容样式 */
.main-content {
    margin-left: 20px; /* 给侧栏留出空间 */
    margin-top: 5%; /* 给Navbar留出空间 */
    margin-bottom: 50px; /* 给Footer留出空间 */
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 110px); /* 高度减去Navbar和Footer的高度 */
    background-color: #0C1015;
}

/* 左侧侧栏 */
.sidebar {
    width: 10%;
    background-color: #53565C;;
    padding-top: 60px; /* 留出给Navbar的空间 */
    position: fixed;
    top: 5%; /* 留出给Navbar的空间 */
    bottom: 50px; /* 留出给Footer的空间 */
    overflow-y: auto;
    /* border-width: 0px 2px 0px 0px;
    border-style: solid;
    border-color: red; */
}
.sidebar a {
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    width: 100%;
    text-align: center;
}
.sidebar a:hover {
    background-color: #444;
}
.sidebar a.active::after {
    content: "";
    position: absolute;
    right: 10px;  /* 三角形的位置 */
    /* top: 20%; */
    transform: translateY(50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent white;  /* 小三角形的颜色 */
}

.table_position{
    margin-left: 43%;
    border: 10px solid #303030;
    padding: 10px;
    border-radius: 25px;
}

.footer {
    background-color: #191919;
    color: white;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0px; /* 与侧栏对齐 */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#fileName {
    margin-top: 10px;
    color: white;
}

#uploadStatus {
    margin-top: 10px;
    color: white;
}
