/* style.css - 自訂 CSS 樣式 for xu_hrm */

/* 全局樣式 */
body {
    font-family: 'Noto Sans TC', Arial, sans-serif; /* 支援中文顯示 */
    background-color: #f4f6f9;
    color: #333;
}

/* 導航列 */
.navbar {
    background-color: #007bff; /* Bootstrap 主題藍 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #fff !important;
}

.nav-link {
    color: #fff !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e0e0e0 !important;
}

/* 側邊欄 */
.sidebar {
    background-color: #343a40;
    height: 100vh;
    position: fixed;
    width: 250px;
    padding-top: 20px;
    transition: width 0.3s;
}

.sidebar a {
    color: #adb5bd;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #495057;
    color: #fff;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        transform: translateX(-200px);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

/* 主要內容區域 */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}

/* 儀表板卡片 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

/* 表格樣式 */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* 表單樣式 */
.form-control {
    border-radius: 5px;
    box-shadow: none;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 條碼顯示區域 */
.barcode-container {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.barcode-container img {
    max-width: 200px;
}

/* 行事曆樣式 */
.calendar {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 多語言支援 */
.lang-zh .lang-vi,
.lang-vi .lang-zh {
    display: none; /* 根據語言選擇隱藏對應內容 */
}

/* 手機 APP 風格按鈕 */
.app-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.2rem;
    border-radius: 10px;
    text-align: center;
    background-color: #28a745;
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}

.app-btn:hover {
    background-color: #218838;
}

/* 異常提醒 */
.alert-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* 圖表容器 */
.chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 576px) {
    .card {
        margin-bottom: 20px;
    }
    .table {
        font-size: 0.9rem;
    }
    .app-btn {
        font-size: 1rem;
    }
}