/* backend/static/css/clock-style.css */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: '微軟正黑體', 'Microsoft JhengHei', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-container {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.clock-header {
    background-color: #0ABAB5; /* Tiffany 藍 */
    color: #fff;
    padding: 20px;
    text-align: center;
}

.clock-header .logo {
    margin: 0;
    font-size: 2.5em;
}

.current-time {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 2px;
}

.clock-main {
    padding: 25px;
}

.status-panel {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.status-panel h2 {
    margin: 0;
    color: #333;
}
.status-panel p {
    margin: 5px 0 0;
    color: #777;
    font-size: 1.1em;
}

.control-panel label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.employee-selector select,
.pin-pad input {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.pin-pad {
    margin-top: 20px;
}

.pin-pad input {
    text-align: center;
    letter-spacing: 10px;
    font-weight: bold;
    background-color: #f9f9f9;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.keypad .key {
    padding: 15px;
    font-size: 1.5em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.keypad .key:hover {
    background-color: #f0f0f0;
}
.keypad .key:active {
    background-color: #e0e0e0;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.punch-btn {
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
}

.punch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.punch-btn.punch-in {
    background-color: #28a745; /* 綠色 */
}
.punch-btn.punch-out {
    background-color: #dc3545; /* 紅色 */
}

.message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    display: none; /* 預設隱藏 */
}
.message.success {
    color: #155724;
    background-color: #d4edda;
    display: block;
}
.message.error {
    color: #721c24;
    background-color: #f8d7da;
    display: block;
}

/* ---【新增】打卡鐘容器樣式強化 --- */
body.clock-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.clock-container {
    width: 100%;
    max-width: 420px;
    min-width: 320px; /* 增加最小寬度，防止過度壓縮 */
    margin: auto; /* 確保在 flex 容器中也能完美居中 */
}
