body { font-family: "Microsoft JhengHei", sans-serif; background: #f0f2f5; display: flex; flex-direction: column; margin: 0; overflow-x: hidden; }
.navbar { background: #1a73e8; padding: 0 20px; display: flex; gap: 10px; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.hamburger { display: none; font-size: 22px; cursor: pointer; padding: 5px 10px; color: white; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; margin-right: 5px; }
.nav-item { color: white; padding: 15px 10px; cursor: pointer; font-weight: bold; transition: 0.3s; border-bottom: 3px solid transparent; }
.nav-item:hover { background: #1557b0; }
.nav-item.active { border-bottom: 3px solid #f39c12; background: #1557b0; }
.container { display: flex; flex: 1; flex-direction: column; }
.sidebar { width: 300px; background: white; height: calc(100vh - 55px); padding: 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.1); overflow-y: auto; transition: 0.3s ease; }
.card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; box-sizing: border-box; }
h2 { color: #1a73e8; font-size: 18px; margin-top: 0; }
input, select, button, textarea { width: 100%; padding: 12px; margin: 8px 0; border-radius: 6px; border: 1px solid #ddd; box-sizing: border-box; font-size: 14px; font-family: inherit; }
button { background: #1a73e8; color: white; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; }
button:hover { background: #1557b0; }
.btn-orange { background: #f39c12; }
.btn-grey { background: #6c757d; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; background: white; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; white-space: nowrap; }
th { background: #f8f9fa; color: #555; }
.chip { display: inline-block; padding: 6px 15px; background: #feebeb; color: #d93025; border-radius: 20px; font-weight: bold; font-size: 13px; cursor: pointer; border: 1px solid #f9caca; transition: 0.3s; }
.chip:hover { background: #f9caca; transform: translateY(-2px); }
.chip-success { display: inline-block; background: #e6f4ea; color: #1e8e3e; border: 1px solid #ceead6; padding: 6px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.password-wrapper { position: relative; width: 100%; margin: 8px 0; }
.password-wrapper input { margin: 0; padding-right: 40px; }
.toggle-password { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: auto; background: transparent; color: #666; padding: 0; margin: 0; border: none; font-size: 18px; line-height: 1; cursor: pointer; }
.toggle-password:hover { background: transparent; color: #1a73e8; }
#loadingOverlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 9999; flex-direction: column; justify-content: center; align-items: center; color: white; }
.spinner { border: 4px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top: 4px solid #ffffff; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#leaveModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 10000; justify-content: center; align-items: center; padding: 15px; box-sizing: border-box; }
.modal-content { background: white; padding: 25px; border-radius: 12px; width: 100%; max-width: 350px; }
.leave-item { border-bottom: 1px solid #eee; padding: 10px 0; font-size: 14px; }
.holiday-label { color: #e67e22; font-size: 11px; font-weight: bold; display: block; margin-top: 2px; }

/* 簽核手風琴專屬樣式 */
.list-item { background: white; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.list-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: #fafafa; font-weight: bold; }
.list-header:hover { background: #f1f3f4; }
.list-details { padding: 15px; border-top: 1px dashed #ddd; display: none; background: white; font-size: 14px; line-height: 1.6; color: #444; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: normal; }
.bg-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.bg-approved { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.bg-rejected { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.action-btns { display: flex; gap: 10px; margin-top: 15px; }
.action-btns button { flex: 1; margin: 0; }
.btn-green { background: #28a745; } .btn-green:hover { background: #218838; }
.btn-red { background: #dc3545; } .btn-red:hover { background: #c82333; }

.search-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-item { font-size: 14px; padding: 15px 5px; }
  #mainContent { flex-direction: column !important; position: relative; }
  .main-content-wrapper { padding: 10px; }
  .search-bar { flex-direction: column; align-items: stretch !important; gap: 5px; }
  .search-bar > div { width: 100%; }
  .search-bar button { width: 100% !important; margin-top: 15px; }
  .sidebar { position: fixed; top: 55px; left: -100%; height: calc(100vh - 55px); width: 260px; z-index: 1000; }
  .sidebar.show { left: 0; }
}
