/* Light Mode Styles */
.attendance-btn {
    background-color: #4CAF50 !important; /* Keep the button color consistent */
    color: white !important;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color: 0.3s;
}

#attendance-btn:hover {
    background-color: #45a049 !important;
}

#daka-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#daka-table, #daka-table th, #daka-table td {
    border: 1px solid #ddd;
}

#daka-table th, #daka-table td {
    padding: 8px;
    text-align: center;
}

#daka-table thead {
    background-color: #f4f4f4;
}

#daka-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#post-title-row {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    background-color:#fff;  /* Light mode title row background - Same as打卡按钮这一行 */
}

.toggle-attendance-records {
    cursor: pointer;
    text-align: center !important;  /* Add this line to center the "全文" link */
    margin-top: 5px;
}

/* Dark Mode Styles */
.dark #attendance-btn {
     background-color: #4CAF50 !important; /* Keep the button color consistent */
    color: #fff !important;
}

.dark #attendance-btn:hover {
    background-color: #45a049 !important;
}

.dark #daka-table {
    color: #eee;
}

.dark #daka-table, .dark #daka-table th, .dark #daka-table td {
    border-color: #666;
}

.dark #daka-table thead {
    background-color: #444;
    color: #fff;
}

.dark #daka-table tr:nth-child(even) {
    background-color: #444;
}

.dark #post-title-row {
    color: #eee;
    background-color:#212121;  /* Dark mode title row background - Same as打卡按钮这一行 */
}

/* Responsive Styles */
@media (max-width: 600px) {
    #daka-table th, #daka-table td {
        padding: 6px;
    }

    #attendance-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 隐藏第 6 条及以后的记录 */
#daka-table tbody tr.hidden-record {
    display: none;
}